Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › EMPTY SEARCH BAR FUNCTION
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 1 month ago.
- AuthorPosts
- August 3, 2022 at 4:04 pm #38669
When the search bar is empty, all 1500 items are offered to be shown which is important for us to avoid.
Is there any way not to show anything when the search bar is empty?
August 4, 2022 at 12:44 pm #38687Hi,
Yes, of course. Change the number of characters to trigger the search to 1 or more here. That will do the trick.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 4, 2022 at 10:38 pm #38704Thank you for your kind response.
I’m also trying to have the results appear “in the order of best match”.
For example: Currently, when i enter ABC, result shows someting with AB in the first place and it follows with the second item that starts with BF (not sure why) and i find the ABC in the 6th place.
Kindly inform the setting that will show ABC in the first place and AB as second.
Thanks & Regards
August 5, 2022 at 2:07 pm #38716Phrase “ABC” will never match something like “AB” or “BF” – that is not possible, the phrase must be contained somewhere (at least partially), but not the other way around (like the content words match the phrase partially). The match is somewhere else, like in a taxonomy term, custom field etc.. It can be a partial/fuzzy match too.
By default the results are ordered by the relevance, make sure to check that here. Then, you can try experimenting with more restrictive search logics. I also recommend using the index table engine for the best possible relevance matches.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.