Search results for custom user meta text field

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search results for custom user meta text field

This topic contains 2 replies, has 2 voices, and was last updated by sabbella sabbella 4 years, 12 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22420
    sabbella
    sabbella
    Participant

    Hello,

    I have custom user meta text input field in my front end search.

    One user have this custom meta values: lengua española y matemáticas

    If I search for the exact or partial phrase I get correctly that user as a result, but if I search for example:

    lengua española matemáticas
    or
    matematicas lengua

    I don’t get any result.

    I’d like to know how to configure the search in order to get results independently of the order of the terms in that custom field. I want to get results if my search contains all or some of the terms in the custom field.

    Thank you,

    #22430
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The problem with that is, that the custom input field (for custom meta values) only works for sort of ‘exact matching’, so the keywords are not separately compared. It is not implemented for performance reasons basically.
    This will only work with the main search field, with that the keywords are compared individually.

    Best,
    Ernest Marcinko

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


    #22431
    sabbella
    sabbella
    Participant

    Ok, thank you Ernest.

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

You must be logged in to reply to this topic.