advanced search show results that meet one or more but not all search criteria

This topic contains 11 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #408696

    Lydia Williams
    Expired Member
    Post count: 42

    Hello I am trying to set it up so that results will show all those listings the meet at least one of the criteria and for it to also note which criteria it meets.

    #408704

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    you can use a category, tag, or custom field for the criteria

    https://wpgeodirectory.com/docs/core-place-settings/#custom
    https://wpgeodirectory.com/docs/gd-search/

    #408720

    Lydia Williams
    Expired Member
    Post count: 42

    I’m confused. I created custom fields. But i want the results to return with OR not AND if the visitor uses advanced search. ANd I want them to be able to know which listings meet which criteria. Thanks!

    #408785

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    You can review the AND/OR settings at GD > Place Settings > Advanced Search

    Click on your field and you can adjust AND/OR

    Next show the fields as sorting options at GD > Place Settings > Sorting Options

    Last, in GD > Design > Search > Display searched parameters with title : CHECK

    Let us know how that works for you

    #409093

    Lydia Williams
    Expired Member
    Post count: 42

    sorry i must be missing something. I’m not seeing the AND/OR

    #409095

    Lydia Williams
    Expired Member
    Post count: 42

    i’m also not seeing the check off box to choose this as a sorting option…

    #409124

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    GD > Place Settings > Advanced Search

    Create your custom field. In this example my field is selected, and then options are available

    #409212

    Lydia Williams
    Expired Member
    Post count: 42

    I was able to change Select to Check and choose OR but the results still only show a listing if it meets all criteria.

    #409248

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Let’s take a look at an example, now that you have the settings under control.

    Can you show 1/2/3 cases where a listing should be included vs excluded?

    You can make a private reply to share the search result URLs, and include your WP Admin credentials if you would like us to take a look at the settings.

    In General, multiple search criteria would be AND’d together. I am not sure that can be changed without a customization.

    Have you already adjusted the sorting options? It could be that sorting options might gt you closer to what you are looking for.

    #409375

    Lydia Williams
    Expired Member
    Post count: 42
    This reply has been marked as private.
    #409483

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    I did see that there were ‘no results’ for the search you mention above. From what I understand, the search results are “And”‘d together, meaning that custom criteria must all be true.

    I will inquire of a colleague about your intent for the search. Thank you for your patience as we look into it.

    #409519

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The OR argument is for within the same custom field not different ones.
    What you want is not possible at the moment.

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket