Forum Replies Created
-
AuthorPosts
-
msamavi64
ParticipantYou cannot access this content.
msamavi64
ParticipantHi,
I changed the method from “Get” to “Post” and now it works well.
Any comment?msamavi64
ParticipantWouldn’t you like to have closer look to find the issue?
msamavi64
ParticipantBy the way, I am using the following snippet based on your older solution to be able to search for some special characters:
add_filter(‘asp_indexing_string_pre_process’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
add_filter(‘asp_search_phrase_before_cleaning’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
add_filter(‘asp_query_args’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
function custom_chars_asp_indexing_string_pre_process($s) {
$original = array(
‘Ā’, ‘ā’, ‘Ā’, ‘ā’, ‘Ḥ’, ‘ḥ’, ‘Ḥ’, ‘ḥ’, ‘Ī’, ‘ī’, ‘Ī’, ‘ī’, ‘Ṣ’, ‘ṣ’, ‘Ṣ’, ‘ṣ’, ‘S̲’, ‘s̲’, ‘Ṭ’, ‘ṭ’, ‘Ṭ’, ‘ṭ’, ‘Ū’, ‘ū’, ‘Ū’, ‘ū’, ‘Z̤’, ‘z̤’, ‘Ẓ’, ‘ẓ’, ‘Ẓ’, ‘ẓ’, ‘Z̲’, ‘z̲’, ‘Ẕ’, ‘ẕ’, ‘ʼ’, ‘ʻ’, ‘ʹ’
);
$replace = array(
‘a’, ‘a’, ‘a’, ‘a’, ‘h’, ‘h’, ‘h’, ‘h’, ‘i’, ‘i’, ‘i’, ‘i’, ‘s’, ‘s’, ‘s’, ‘s’, ‘s’, ‘s’, ‘t’, ‘t’, ‘t’, ‘t’, ‘u’, ‘u’, ‘u’, ‘u’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ‘z’, ”, ”, ”
);// Replace them
if ( is_array($s) ) {
if ( isset($s[‘s’]) && !$s[‘_ajax_search’] )
$s[‘s’] = str_replace($original, $replace, $s[‘s’]);
} else {
$s = str_replace($original, $replace, $s);
}return $s;
}msamavi64
ParticipantI see.
Are you aware of any possible incompatibility with other plugins?Regards,
Majidmsamavi64
ParticipantErnest, Please ready my previous post once again!
I did write that in the new test, the “%20” whitespace character is NOT removed but the results page again displays nothing!msamavi64
ParticipantThe same issue exists while the url is different and the “%20” whitespace character is not removed now!
Please have a look at the urls while searching “far mu” and try to change the sort.msamavi64
ParticipantHi,
Thanks for the reply.
I changed the Action for “Show ‘More results..’ text in the bottom of the search box” option.
Please try now using your own example search words and comment.Kind regards,
Majidmsamavi64
ParticipantYou cannot access this content.
msamavi64
ParticipantThank you Ernest!
msamavi64
ParticipantYou cannot access this content.
msamavi64
ParticipantHi Ernest,
Thanks for the reply.
I have already set it but it does not work!Regards,
Majidmsamavi64
ParticipantHi Ernest,
One issue regarding small and capital letters (case sensitivity):
If we use:
$original = array(
‘Ā’, ‘ā’
);
$replace = array(
‘A’, ‘a’
);Only search string “Ava” will find the post title “Āvā”. How to make it case insensitive so that it can also be found with search strings like: “ava” or “avA” ?
Regards,
Majidmsamavi64
ParticipantErnest,
It seems it works!
I have added two other special characters, those worked as well 🙂I’m very happy now!
Let me check further.Best,
Majidmsamavi64
ParticipantHi Ernest,
Thank you for the reply.
The search engine was already set to index table.
I created a snippet containing your code.
I deleted the index.
I clicked on “Create new index” button, but it indexed only one item. (problem!)
I disabled your code snippet.
I clicked on “Create new index” button, then all items were indexed successfully as before.It seems the code snippet prevents indexing.
Any comment please?Best,
Majid -
AuthorPosts