Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search Query Limitation
- This topic has 5 replies, 2 voices, and was last updated 5 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
January 17, 2021 at 12:43 am #31170
RobotFaults
ParticipantI would like to know if there is a setting in which to fix this noticed issue.
If you search srvo 050 it brings up the correct content – Should be collision detect alarm
However,
If you search srvo50 it does not yield any results.
January 17, 2021 at 9:52 am #31173Ernest Marcinko
KeymasterHi,
Is the keyword “srvo50” actually within any of the posts which should match? If that word does not exist in any of the posts, there is no way to match it.
If you want, you can either add additional keywords for each post on the editor screen. (if no visible, you can enalbe that meta box here)
Alternatively, if you want these keywords globally, you can also use the synonyms feature.January 17, 2021 at 7:15 pm #31175RobotFaults
ParticipantThanks for this information. Would it be possible to create some logic to achieve this as well. For example, if I know that some codes have a prefix of 0 (e.g. srvo050) then it would automatically pull up through the logic?
https://documentation.ajaxsearchpro.com/behavior/search-logic/search-logics-explained
January 18, 2021 at 1:50 pm #31183Ernest Marcinko
KeymasterUnfortunately no, this is more of a linguistics issue, different logic will not help. The only way for now is either via the additional keywords or the synonyms feature.
January 23, 2021 at 7:44 am #31262RobotFaults
ParticipantErnest,
The problem I can see happening is that there are many codes that preface 0 (or contain 0 after the alpha text). So say you have 10,000 posts – I would say the synonym would be the best option. With that being said, can a wildcard be added within the synonym?
January 23, 2021 at 1:19 pm #31265Ernest Marcinko
KeymasterIn that case synonyms is the best of all choices for sure. However wildcards are not supported there.
I just updated the knowledge base with more documentation about index table related hooks here. Those let you access the keywords, fields etc.. before they are indexed. If you are into custom coding, then using the asp_indexing_keywords could help you out. That is basically the keywords array for each post iteration before they are counted and sent to the database. Maybe you can try programming a custom function to manipulate them, or to add more based on your criteria.
-
AuthorPosts
- You must be logged in to reply to this topic.