- This topic has 2 replies, 2 voices, and was last updated 6 years, 11 months ago by alexpoon2000.
-
AuthorPosts
-
October 11, 2017 at 4:24 am #15094alexpoon2000Participant
I am trying to setup the search. It looks nice but I found the search result is not as expected. I am not sure if I set something wrong or not.
I made a search page here:
https://homemaidapp.com/apps/prosper/ajax-search-pro/And I try to search the following:
“Do you know a woman”You can login to my backend. You can see a custom post type named as “Knowledge”. And I set the ajax search to search only on this custom post.
And in the list of Knowledges, you can see a post title which is “”Do you know a woman who is being abused?A legal rights handbook.”
I expected the search result of “Do you know a woman” will show this post as the first result. However, this post is not even listed in the search result.
October 11, 2017 at 9:01 am #15102Ernest MarcinkoKeymasterHi!
Thank you for the details, I have checked your configuration, and found a few issues, that I fixed.
1. Some taxonomy terms were also choosen to be returned as results, which I believe you don’t need, as you only want the knowledge post type as results, nothing else. I have removed these taxonomy terms from the result sources: https://i.imgur.com/iZj4CFh.png
(if you intended to display these as results, then my apologies)2. Based on your descritpion I assumed you want closer matches to exact phrases, so I changed the search logic configuration as following: https://i.imgur.com/G53pdT7.png
This configuration prefers exact matching, if no exact matches (or not enough) are found, then a secondary fuzzy matching with the ‘AND’ logic is executed as well. It will very likely return much more relevant results.
You can learn more about search logics and similar features in the following documentation chapters:
– Search logic
– Index table engineI hope this helps!
October 11, 2017 at 9:09 am #15104alexpoon2000ParticipantThis is what I needed! Thanks! I will try to study more on the settings.
-
AuthorPosts
- You must be logged in to reply to this topic.