• Hi,

    I am hoping to understand the search and filter function better. In essence I am trying to understand if I create various fields which can be filtered will searching for specific fields eliminate found results if All of the selected fields someone checks when searching are not all present in a specific ad. Or perhaps another way of asking is how are partial matches handled. So if some searches for A,B and C but only A and B are in an ad, will that be found.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i understand you are asking about the custom fields search, if so then for the field that is an array (can have more than one value) only available search type in WP_Query is “IN”.

    This means that if you will search for A, B and C then the WP_Query will find ads that have at least on of these checked.

    If you would like to find ads that have all A, B and C checked then your custom field (the one that has A, B and C options) would need to be a taxonomy as only the taxonomy search in WP_Query supports the “AND” search.

    Currently, using taxonomies in Custom Fields extension is a bit difficult but for January we are planning an update that will make it easier.

Viewing 1 replies (of 1 total)

The topic ‘Search Function’ is closed to new replies.