Basic question on Indexing

I have tried to read through documentation and forum and did not really see
a pointed answer to internals of how this works in ES.

I understand that One or more Types can be part of an index, E.g. Product
index with product variation and product attributes type
Each document (Product) has an ID in Elasticsearch, and a document can be
updated by performing an index operation using Product ID.

My question is when I update a product by ID, is ES re-indexing only the
document (Product ID) or is it re-indexing complete product index?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hello,

When you update a document by ID, only that document gets re-indexed, not
the complete index.

Actually, the way I understand it works is that a new document is indexed,
while the old one gets marked as deleted (and will eventually be physically
removed during a
mergehttp://www.elasticsearch.org/guide/reference/index-modules/merge/
).

Best regards,
Radu

http://sematext.com/ -- ElasticSearch -- Solr -- Lucene

On Tue, May 28, 2013 at 10:02 PM, Hariharan Vadivelu hariinfo@gmail.comwrote:

I have tried to read through documentation and forum and did not really
see a pointed answer to internals of how this works in ES.

I understand that One or more Types can be part of an index, E.g. Product
index with product variation and product attributes type
Each document (Product) has an ID in Elasticsearch, and a document can be
updated by performing an index operation using Product ID.

My question is when I update a product by ID, is ES re-indexing only the
document (Product ID) or is it re-indexing complete product index?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Radhu, so I tested update to the same document twice and then when I
check index status number of delete operation shows as 0, so I assume
although ES may be internally performing delete of old document and then
merging but this data is not really available through index status API.

curl -XPUT http://localhost:9200/blog/article/1 -d '{"title": "New version
of Elastic Search released!", "content": "...content1", "tags":
["announce", "elasticsearch", "release"] }'
curl -XPUT http://localhost:9200/blog/article/1 -d '{"title": "New version
of Elastic Search released!", "content": "...content2", "tags":
["announce", "elasticsearch", "release"] }'
curl -XGET 'http://localhost:9200/blog/_status?pretty=true'

On Tuesday, May 28, 2013 2:40:07 PM UTC-5, Radu Gheorghe wrote:

Hello,

When you update a document by ID, only that document gets re-indexed, not
the complete index.

Actually, the way I understand it works is that a new document is indexed,
while the old one gets marked as deleted (and will eventually be physically
removed during a mergehttp://www.elasticsearch.org/guide/reference/index-modules/merge/
).

Best regards,
Radu

http://sematext.com/ -- ElasticSearch -- Solr -- Lucene

On Tue, May 28, 2013 at 10:02 PM, Hariharan Vadivelu <hari...@gmail.com<javascript:>

wrote:

I have tried to read through documentation and forum and did not really
see a pointed answer to internals of how this works in ES.

I understand that One or more Types can be part of an index, E.g. Product
index with product variation and product attributes type
Each document (Product) has an ID in Elasticsearch, and a document can be
updated by performing an index operation using Product ID.

My question is when I update a product by ID, is ES re-indexing only the
document (Product ID) or is it re-indexing complete product index?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.