newsdev / stevedore

search document dumps: ingest and explore in one extensible framework
Apache License 2.0
124 stars 10 forks source link

lowercase index names from URL #13

Open jeremybmerrill opened 8 years ago

jeremybmerrill commented 8 years ago

elasticsearch requires index names to be lowercase

URLs, generally, are case-insensitive.

so, when we get the index name from the URL, we should downcase it to match what elasticsearch is expecting (and so users still can rely on case-insensitive URLs) -- so /search/MYINDEX is the same as /search/myindex, both mapping to the myindex index in elasticsearch