Page MenuHomePhabricator

Boost search results within a configurable geo distance
Closed, ResolvedPublic

Description

Something that may become useful, specifically for mobile, is to boost articles within a particular distance of the user. Getting this location from geoip is likely to not be very amazing, but on mobile we can query the browser for location data. The particular example of museum might get better results than many things, but i think it shows off how much more relevant results could be in certain cases. Figuring out when to use or not use the geo boost might be a challenge.

Example query: museum

Current:

"Museum",
"Egyptian Museum",
"Natural history museum",
"National Museum of the United States Air Force",
"Imperial War Museum",
"Icelandic Phallological Museum",
"List of railway museums",
"The Museum of Curiosity",
"Democratic Government Museum",
"Kandahar Provincial Museum",
"Museum of Contemporary Art, Chicago",
"Motorcycle Hall of Fame",
"Bullock Texas State History Museum",
"National Museum of the United States Navy",
"Natural History Museum, London",
"Museum Campus",
"Pakistan Army Museum",
"Museum of Transport, Greater Manchester",
"List of national museums",
"ABBA: The Museum"

Boost within 100km of San Francisco:

"Museum",
"Computer History Museum",
"De Young (museum)",
"San Jose Museum of Quilts & Textiles",
"The Tech Museum of Innovation",
"San Francisco Cable Car Museum",
"Oakland Museum of California",
"Asian Art Museum of San Francisco",
"Egyptian Museum",
"Oakland Aviation Museum",
"The Walt Disney Family Museum",
"Cartoon Art Museum",
"San Francisco Railway Museum",
"Natural history museum",
"Museum of the African Diaspora",
"San Jose Museum of Art",
"Randall Museum",
"San Francisco Museum of Modern Art",
"Charles M. Schulz Museum and Research Center",
"Rosicrucian Egyptian Museum"

Boost within 100km of Paris, France:

"Museum",
"National Museum of Natural History (France)",
"Louvre",
"Musée de l’air et de l’espace",
"Egyptian Museum",
"Musée Grévin",
"Natural history museum",
"International Council of Museums",
"Musée d'Orsay",
"National Museum of the United States Air Force",
"Imperial War Museum",
"Icelandic Phallological Museum",
"List of railway museums",
"The Museum of Curiosity",
"Democratic Government Museum",
"Kandahar Provincial Museum",
"Museum of Contemporary Art, Chicago",
"Bullock Texas State History Museum",
"Motorcycle Hall of Fame",
"National Museum of the United States Navy"

Additional rescore filter used:

{
  "weight": 2,
  "filter": {
    "nested": {
      "path": "coordinates",
      "filter": {
        "geo_distance": {
          "distance": "100km",
          "coordinates.coord": {
            "lat": 37.783333333333,
            "lon": -122.41666666667
          }
        }
      }
    }
  }

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

i suppose this could be a potential hackathon idea for the offsite next week

Deskana moved this task from needs triage to search-icebox on the Discovery-Search board.
Deskana subscribed.

Putting it in "Later", as it doesn't relate directly to our goals this quarter. If hacking on this ends up happening at the offsite, then we can discuss reprioritising. :-)