Skip to content

City Autocompletion with Algolia#5

Open
stanBienaives wants to merge 7 commits intoalgolia:masterfrom
stanBienaives:master
Open

City Autocompletion with Algolia#5
stanBienaives wants to merge 7 commits intoalgolia:masterfrom
stanBienaives:master

Conversation

@stanBienaives
Copy link

Features

  • Typo tolerance
  • Flag icon for quick identification
  • Click to map
  • Around me search

Look and Feel

demo-search-algolia

Indexing Data

Indexing cities in Algolia:

  • download data set:
wget  http://download.maxmind.com/download/worldcities/worldcitiespop.txt.gz
tar -xzf worldcitiespop.txt.gz
  • Run rake task
rake algolia:index data_path=/path/to/cities

Index Settings:

  • Default ranking by population: user is more likely to search for a big city.
  • Geolocation setting ( with _geoloc field ) to allow search
  • Ranking formula:
    1. typos
    2. geo
    3. custom ( population )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant