• I am using relevanssi on my website operaonvideo.com
    Works fine. I have many ACF custom field which are indexed.

    Now I would like to provide an Advanced Search Form
    which allows for searching specific ACF custom fields.

    The form should be something like:

    Value to search for
    Dropdown for Condition: contains – contains not – equals – equals not
    Dropdown for name of advanced custom Field

    This should be repeated three times with a dropdown (AND/OR) between.
    If some sort of fuzzy query could be done that would be an additional bonus.

    MY QUESTION IS:
    Can this be done/programmed with relevanssi?
    is it difficult to develop? How many hours?
    Will it be effective in Speed?

    Thank you for Your answers and advice

    Kurt

    The page I need help with: [log in to see the link]

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

    (@msaari)

    You may want to look into FacetWP and Search & Filter. Both provide advanced search field functionality, and both are compatible with Relevanssi.

    You can also develop this search form yourself; it’s not terribly complicated and something skilled WP developers should be able to do, the user interface is basically just a bunch of dropdown fields after all and the rest is code that takes the values from the fields and turns them all into a valid meta_query that can be fed to Relevanssi. That’s there FacetWP and Search & Filter help the most – they let you focus on just building the form, and the rest is handled automatically.

    Also, if the form does not include a search term, and instead just uses the fields, then it’s best not to use Relevanssi at all. If no search term is involved, using just WP_Query is better.

    Custom field filtering isn’t the most effective way, but in general should work fast enough. If the queries get really complex, then you may notice some slowness, but there are enough variables involved here that it’s hard to say exactly how well it’ll work.

Viewing 1 replies (of 1 total)
  • The topic ‘Advanced Search Form with ACF’ is closed to new replies.