Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Some posts show full content of post in search results box › Reply To: Some posts show full content of post in search results box
Hi,
Thank you very much for the details, it helped us a lot!
This was indeed a yet unknown bug, I was able to replicate the issue on our test server as well. The issue was caused by the fact that the algorithm tries to look for the first of the search keyword, in case of “eu citizen”, it looks for the context of “eu” first. However the minimum keyword length was defined as 4 here, in which case the keyword “eu” was ignored (length = 2), and an empty string was passed to the function. It caused to return the whole description without shortening the length.
I have corrected this problem on your server via the plugin editor, and I will make sure to implement this fix in the upcoming release, so you don’t have to worry about it. It should be all right now.
If I may suggest a different logic setup, I would recommend this for the best possible, and most relevant results: https://i.imgur.com/rlbAq2W.png