Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Are there any plans to include exact matches within the index table? › Reply To: Are there any plans to include exact matches within the index table?
Hi Peter,
It’s unfortunately not possible to do so in general. Index table is basically a list of keywords, where every keyword is in a separate line (sort of like a spreadsheet). Therefore the order of the words is lost and so exact matching is impossible.
However the post titles are an exception as they are short. They are stored in two ways – both words and the whole titles up to 50 characters in the keyword field (that is the keyword length limit).
Basically if the title is selected for search an exact and a partial query is also tested against these titles.
In your case it may not match for 3 possible reasons:
– The title is longer than 50 characters (which is true in this case)
– Also, if there are stop-words enabled and the stop word is detected during the index then the exact title is not indexed. This could be true as well, as if you have that enabled “of” is in the title any by default it’s excluded.
However the results should still show up, so I’m guessing that you are using the “AND” or “AND with exact keyword matches logic”, and I’m guessing that you have stop words enabled – so the “of” word in the title is casusing the non-match. So I would suggest two possible solutions:
1. Either disable the stop-words and re-index
2. Or add the same words on the search instance keyword exceptions list as well, so they are removed from the search phrase
Either solution should do the trick.