Part phrase search not working

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 Ernest Marcinko 1 year, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33318
    sensory39
    sensory39
    Participant

    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.

    #33328
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Exeter and EX1 are working all right on my end:
    – 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #33333
    sensory39
    sensory39
    Participant

    I 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 sensory39.
    #33336
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It 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 :)


    #33339
    sensory39
    sensory39
    Participant
    You cannot access this content.
    #33340
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.