Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Random results
- This topic has 15 replies, 2 voices, and was last updated 5 years, 5 months ago by
willgreeny59.
-
AuthorPosts
-
December 9, 2020 at 8:24 pm #30605
willgreeny59
ParticipantHello,
I noticed that the logic and behaviour on my site (poemanalysis.com) is very poor – it takes possibly 4-5 words to sometimes get matches, and before that, most of the matches are quite random and unrelated. Is there a way to improve the logic behaviour for results?
Kind regards,
Will
December 10, 2020 at 1:34 pm #30623Ernest Marcinko
KeymasterHi Will,
I recommend checking the primary/secondary keyword logic and the index table documentation.
If you have a larger number of results, then using a more strict keyword logic setup is advised, I recommend this: https://i.imgur.com/UxUQoKj.png
December 14, 2020 at 8:05 pm #30689willgreeny59
ParticipantHello,
Thank you for this information. I have the rules currently set to this – is there any way of improving the results further?
Kind regards,
Will
December 15, 2020 at 9:15 am #30691Ernest Marcinko
KeymasterWell, that should be as relevant as possible, reflecting the keyword counts and everything. Depending on your scenario, you can make adjustments on the relevance multiplier values here: https://i.imgur.com/Rn2eCzk.png
Increase them on the fields, which are important to you, and decrase on the ones less important.
December 15, 2020 at 1:30 pm #30697willgreeny59
ParticipantThe issue seems to persist when ‘the’ is used. For example, you can see the search bar understands what I am searching for in the suggestion in the search text field, but the results are not even showing it? Is it possible to fix this?

December 15, 2020 at 1:30 pm #30698willgreeny59
ParticipantIt does not make sense considering the keyword ‘son’ and ‘journey’ are not on any of the results?
December 15, 2020 at 1:52 pm #30702Ernest Marcinko
KeymasterThose are just the titles, the “son” and “journey” are probably matched within a different selected field (title, excerpt, custom fields etc..)
It might be also a good idea to turn on the keyword exceptions, to filter out some common words. Once changing that, don’t forget to re-create the index table.December 15, 2020 at 11:22 pm #30725willgreeny59
ParticipantThe ‘son’ and ‘journey’ are in the title fields too. Let’s take the ‘journey’ example. Even with ‘the journey by mary’ searched for, it is only the 4th result???:

I have to spell out the title word-for-word for it to go to the top of the results:

If I search for just ‘journey’ it appears straight to the top.This just does not make sense to me on any level. What is the fix for this?
The site can be tested if you want to check it out here.
December 16, 2020 at 10:23 am #30736Ernest Marcinko
KeymasterIt is impossible to tell only by looking unfortunately. By default configuration, that should be the first for sure, as title queries matching the start of the string are always prioritized. But there are other factors – like relevance value changes, priority and group priority changes, post type custom ordering etc..
Can you please add temporary FTP and back-end access, so I can check the configuration directly and debug the query if neccessary? Thank you!December 16, 2020 at 1:23 pm #30753willgreeny59
ParticipantHi Ernest, would it be easy for WordPress login details?
December 16, 2020 at 2:10 pm #30760Ernest Marcinko
KeymasterWell, wordpress login might no be enough, as I may need to debug the queries as well. If you can add wordpress login only, then let’s try that.
December 16, 2020 at 3:47 pm #30764willgreeny59
ParticipantYou cannot access this content.
December 17, 2020 at 11:31 am #30777Ernest Marcinko
KeymasterThank you very much!
I did an intensive debugging session, and use the WP File manager plugin as well, since you had it pre-installed. I found an actual issue within the query results comparision script. It was a tiny mistake, but caused big trouble. I could not replicate it on our test servers as it was specific to configuration and to a result size above a limit.
I made a tiny change to the search algorithm to correct that mistkake. If I’m correct, the results should be ordered correctly by their relevance, and the title matches should be atop of all of them.
December 17, 2020 at 8:18 pm #30801willgreeny59
ParticipantAh yes, that seems to have fixed it, thank you so much for doing this!
I’m glad it was a fixable bug in the end. Would it require patching or a specific criteria to remove such a bug? Nervous it could come back again.
December 18, 2020 at 10:02 am #30803Ernest Marcinko
KeymasterYou are welcome!
We will implement this fix in the upcoming release for sure, so you don’t have to worry about it anymore.
-
AuthorPosts
- You must be logged in to reply to this topic.