Search bar error

This topic contains 7 replies, has 4 voices, and was last updated by  Paul 9 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #18026

    openmindtrips
    Expired Member
    Post count: 180

    Hi

    When I type in searches in the GD search bar it seems as if only specific tags are located. When I search for “ayahuasca” Near “Iquitos” I get results, but when I search for “ayahuasca” Near “Peru” there are no results. Both Iquitos (a town in Peru) and Peru are set up as tags. I can search for Peru without typing anything in the near-field and get results.

    Is the near-field not supposed to enable users to type in a location-tag? Could you enabled the GD search widget to search for locations from the google map address in the listings?

    Thx

    #18031

    Guust
    Moderator
    Post count: 29970

    The near field looks for cities in the database.
    The search field looks at the tags etc.

    #18199

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Just to correct Guust here the “Near” field does not at present search anything in the db, it is geolocated via the google api and that position is used to search for listings near that position, sometimes, if you enter a country name it is likely the center of the country will be returned as a position but the search distance in search settings might not be wide enough to find all listings in that area.

    Stiofan

    #18254

    Guust
    Moderator
    Post count: 29970

    Thx for clarifying, Stiofan.
    From my tests I had thought that it looked at the database and then used the coordinates of what was in the database.
    So if it uses the Google API, does that mean that field could be set to autocomplete using Google’s data?

    #18257

    Paul
    Expired Member
    Post count: 171

    Confused ?

    Surely a user wants to know what’s available to them – so is it in the DB

    I have been working on the assumption that if someone searched the near field they would return results held in the DB as Guust which is logical

    #18258

    Guust
    Moderator
    Post count: 29970

    It will return listings in the database after it calculates the search area around the request.

    1. Visitor searches for “My city”
    2. Google figures out the lat and lng of “My city”
    3. GD then searches the database of any relevant listings in the database within that radius, and serves them on the search page.

    This system is actually better than only searching for locations in the database.
    1. Imagine you have listings in “My city”.
    2. You do not have “City-next-door” in your database.
    3. If the search would only use the database, you would have zero results, when somebody searches near “City-next-door”.
    4. But the Google API will send the coordinates of “City-next-door” to GD, and if the listings in “My city” are within the search radius, you will still have search results.

    Hope I made sense.

    #18447

    openmindtrips
    Expired Member
    Post count: 180

    thx

    #18486

    Paul
    Expired Member
    Post count: 171

    very clear explained perfectly – totally get the logic Guust 🙂

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount