Skip to content

Give Pelais a SOLR veneer (in order swap in Pelias on clients written against SOLR)

Notifications You must be signed in to change notification settings

OpenTransitTools/pelias.adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pelias.Adapter

Python wrapper to make Pelias look like SOLR (geosearch instance)

build:

  1. install python 2.7, along easy_install, zc.buildout ("zc.buildout==1.5.2") and git
  2. git clone https://github.com/OpenTransitTools/pelias.adapter.git
  3. cd pelias.adapter
  4. buildout

run:

  1. rm nohup.out; nohup bin/pserve config/development.ini --reload PELIAS_SOLR=1 &
  2. http://localhost:45454/solr/select?q=2
  3. http://localhost:45454/solr/boundary/select?q=8

test:

  1. run the server (see above)
  2. bin/test

rules:

  1. try 'autocomplete' .. if that fails, try 'search'
  2. (or should we look at length of string and try 'search' first on longer strings?)
  3. fix 'same string' problem:
    • remove duplicate points (strings 99% similar and lat/lon very close by)
    • clean up duplicate strings (e.g., Starbucks problem)
  4. call Pelias with configurable url (sources=oa,osm,transit, etc...)
  5. if we get WoF a city record(s), then strip city from query string and resubmit (e.g., bad city problem)
  6. ...

About

Give Pelais a SOLR veneer (in order swap in Pelias on clients written against SOLR)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published