Feel free to correct me if the basics are off in some parts of this
question:
Given that a JSON document like this is indexed by ES:
[
{
name:"watch",
type:"rolex"
},
{
name:"apple",
type:"fruit"
}
]
Q1) What happens when a new field is added to new data and needs to be
indexed?
For example:
[
{
name:"hoola-hoop",
type:"toy"
store:"toys-r-us"
}
]
Is this data still stored in the same index?
Q2) What happens if the newly added field is something that ES founds
out about through a CouchDB stream? Like the Rolex watch having a
newly added {store:"watches-r-us"} field, then is the existing index
entry deleted and re-added in the same index?