HomePhabricator

Properly create Elasticsearch index

Authored by WikiChad.

Description

Properly create Elasticsearch index

Summary:
When the index does not exist and auto_create_index isn't
enabled, running ./bin/index results in a failure. That's
T5990

Instead create an index properly. This also allows us to do
nice things like do a proper mapping and analysis like for
substring matching like outlined by @fabe in T6552.

Test Plan:
Deleted and created index multiple times to verify
proper index creation and usage.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, manybubbles, chasemp, fabe, epriestley

Differential Revision: https://secure.phabricator.com/D10955

Details

Committed
epriestleyDec 22 2014, 9:10 PM
Pushed
epriestleyDec 22 2014, 9:11 PM
Reviewer
Blessed Reviewers
Differential Revision
D10955: Properly create Elasticsearch index
Parents
rPc953c0fedc17: Switch normal query from match to simple_query_string
Branches
Unknown
Tags
Unknown