• The products on our website have more than 10 arbitrary fields made via ACF.
    When users search for a wide query that can be contained in one of the fields, a bunch of results come out that they don’t need.

    Is it possible to make several search forms on a separate page so that you can search for a specific arbitrary field point-by-point? In the documentation, I saw only different fields for different types of messages, but nothing is said about arbitrary fields there.

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    It is possible but slightly complicated. It’s easiest if you have Relevanssi Premium, as Premium lets you target specific parts of the post, making it much easier to do a search that targets specific custom field.

    With the free version, the best approach is to just search for all posts, then add a filter on the relevanssi_hits_filter hook to weed out the posts where the search term doesn’t appear in the right custom field. It’s not a convenient solution or the best for performance, but that’s what you can do with the free version.

Viewing 1 replies (of 1 total)
  • The topic ‘Separate search forms for different custom fields’ is closed to new replies.