GithubHelp home page GithubHelp logo

boost results by query locality about api HOT 7 CLOSED

pelias avatar pelias commented on August 15, 2024
boost results by query locality

from api.

Comments (7)

hkrishna avatar hkrishna commented on August 15, 2024

Thanks @sevko for opening this issue. I will take a look at it soon. 😸

from api.

hkrishna avatar hkrishna commented on August 15, 2024

So, #102 implements this - however I see a few regressions.

For example,

new york, new york returns some point from NJ because it matches on locality and neighborhood with a value west new york 😦

@sevko do you wanna take this one over?

from api.

sevko avatar sevko commented on August 15, 2024

Thanks for the DL @hkrishna. I'll check it out.

from api.

sevko avatar sevko commented on August 15, 2024

After a lot of trial-and-error investigation in #102 , I've boiled down the necessary query logic to:

if an admin-value is present in the query

  • sort results by a match on name.default
  • sort results by a match on their admin values
    • only accept a match on one admin value, starting with admin0 and moving downwards (in other words, if a match on admin2 is found, do not go on to check locality and thus potentially compound the _score)
    • assign lower and lower boost values to lower admin values (so a record with a match on admin0 is ranked higher than one with a match on admin2)

from api.

sevko avatar sevko commented on August 15, 2024

For the record, we've decided to table this until we have smarter address parsing in place (which can identify multiple admin values in a query string, like Foo Bar, SoHo, New York).

from api.

missinglink avatar missinglink commented on August 15, 2024

related? #148

from api.

riordan avatar riordan commented on August 15, 2024

Hurray, we're working on this in #187.

Duplicate of other ticket.

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.