Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Part phrase search not working
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 10 months ago.
- AuthorPosts
- May 19, 2021 at 7:56 pm #33318
I have a custom post type “regions” and custom taxonomy of “postcodes”.
I need the search to work on part words. At the beginning of the words
I have 1 test set up.
searching Exeter, ex1 or ex10 or EX16HY, EX1 6HY should all return the ‘Exeter’ region which has a tag of “ex1” and Title of “Exeter” assigned to it.
I have the logic set to OR but this function is not working.May 20, 2021 at 8:50 am #33328Hi,
Exeter and EX1 are working all right on my end:
Best,
– Exeter: https://i.imgur.com/IebLpQG.png
– Ex1: https://i.imgur.com/U8dYKLL.png
– Ex1 6HY: https://i.imgur.com/3tsZTLE.png
The words EX16HY and EX10 will not work, because there is no such word or part of word anywhere in tags, nor the title or content for that item.
If you need to match those keywords, you can either add the postcodes, or use the additional search keywords box.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 20, 2021 at 10:41 am #33333I have ex1 in the postcodes tag taxonomy. I was hoping that would recognised as a part word for both searches ex10 and ex16hy.
ex1 space 6hy will work as ‘ex1’ is a separate phrase but not the part word recognition without the space ‘ex16hy’.Is there any way to get part word recognition for the custom taxonomy ‘postcodes’ ?
Thanks
-
This reply was modified 1 year, 10 months ago by
sensory39.
May 20, 2021 at 11:33 am #33336It works the opposite way – the phrase must be a part of the match, not the match keyword as part of the phrase, there is no way of doing that unfortunately.
You can however use the synonyms feature. That is a great way for adding similar keywords, and it works globally. Make sure that you recreate the index once you added the synonyms.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 20, 2021 at 2:53 pm #33339You cannot access this content.May 20, 2021 at 3:07 pm #33340You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 1 year, 10 months ago by
- AuthorPosts
You must be logged in to reply to this topic.