Advanced Search Custom Rules

This topic contains 3 replies, has 2 voices, and was last updated by  Rudi Khoury 4 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #508560

    Rudi Khoury
    Full Member
    Post count: 36

    Hi,

    I’m hoping you can help. I have a directory using V2 and I have 450 different types of categories and 100,000 places.

    I would like the search functionality to match up the text typed in the search bar to the category names first. Let me give you an example to why I would like this and what i want to solve.

    E.g, User types in the word “plumber” in the search bar and receives results with the word plumber in the title or description. I would like the results to favour the category name over the title name because it is not fair on businesses who have a unique business name.

    basically I would like the search functionality to think like this:
    1. check searched equry with categories names
    2. check with tags
    3. check with the title name.
    4. check descriptions
    5. display results.

    I hope this makes sense

    Thanks

    #508596

    Alex Rollin
    Moderator
    Post count: 27815

    You can see how our search functionality works here:
    https://wpgeo.directory/supreme-directory/

    When you place your cursor in the search field it can do 1 of 4 things

    1. Autosuggest categories and titles (direct links) and then accept search keyword.
    2. Autosuggest ONLY categories (direct links) and then accept search keyword.
    3. Autosuggest ONLY listing titles (direct links) and then accepts search keyword.
    4. Disable all Autosuggest and accepts search keyword.

    That same search for field will take the keyword and search in title/description/tags/categories.

    Results are displayed with the GD Search Archive template.
    https://wpgeodirectory.com/docs-v2/templates/search/

    The payout can be adjusted in the Archive item template
    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #508598

    Alex Rollin
    Moderator
    Post count: 27815
    #508868

    Rudi Khoury
    Full Member
    Post count: 36

    Thank you Alex

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

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

Open Support Ticket