Indexing the _id field


(Tim Pease) #1

I would like to index the _id field for one of my document types in
the index. Reading through the elasticsearch documentation (http://
www.elasticsearch.org/guide/reference/mapping/id-field.html) it was
recommended to not do this. Could someone please explain any of the
ramifications if I do enable indexing of the _id field? It would be
greatly appreciated!

Blessings,
TwP


(Shay Banon) #2

It just means it will add the overhead of indexing an additional fields.
its not that its not recommended, but, usually, you can do without it (i.e.
using things like ids filter and hte like).

On Wed, Nov 2, 2011 at 12:55 AM, Tim Pease tim.pease@gmail.com wrote:

I would like to index the _id field for one of my document types in
the index. Reading through the elasticsearch documentation (http://
www.elasticsearch.org/guide/reference/mapping/id-field.html) it was
recommended to not do this. Could someone please explain any of the
ramifications if I do enable indexing of the _id field? It would be
greatly appreciated!

Blessings,
TwP


(system) #3