Clarifications in Elastic Search

Questions:

1 . When scroll, the snap shot is taken for the query table alone or
for all child tables or corresponding indices.

  1. While using scroll, if any error happens will all the documents
    that are modified inside scroll loop can be reverted?

  2. Can we add bulk set of documents for a parent query. For example:
    If my query returns some documents from parent table, can i create
    child documents for all parents by passing one single child document?

  3. Can i return _parent field on all child tables.

First, there aren't really tables in ES ... :wink:

On Mon, Jan 3, 2011 at 4:07 PM, senthil prabhu senthilsebi@gmail.comwrote:

Questions:

1 . When scroll, the snap shot is taken for the query table alone or
for all child tables or corresponding indices.

Its for all data in that relevant indices being searched.

  1. While using scroll, if any error happens will all the documents
    that are modified inside scroll loop can be reverted?

No. Doing any other other operations beside scrolling is not relevant.

  1. Can we add bulk set of documents for a parent query. For example:
    If my query returns some documents from parent table, can i create
    child documents for all parents by passing one single child document?

You can use the bulk API for that, you will need to repeat the child
document for each parent.

  1. Can i return _parent field on all child tables.

You can set it to be stored in the mapping, and then ask for it in the
fields when searching.