Hi Clint,
Thanks for your answer --- it's really helpful. Luckily (?), all of our
code is written in terms of queries, not GETs, as we are using
Elasticsearch as a form of secondary indexing for our (distributed)
database, so any documents for which we already have the id can bypass ES
altogether.
Carl
On Monday, October 8, 2012 2:38:13 AM UTC-7, Clinton Gormley wrote:
The only thing that you need to be careful about is getting and updating
existing docs.The doc-GET API can't use the 'doc_read' alias because it points to more
than one index. You have a few choices:
- try the new index first, and if that fails to find the doc, try the
old index- use a query instead of a GET
- move the old data into the new index
I've opened an issue with some ideas about how to resolve the above more
transparently:
Multi-index document GET · Issue #2309 · elastic/elasticsearch · GitHubclint
--