James_Cook
(James Cook)
September 20, 2011, 12:32am
1
It seems that every time I index a document, I get the update mapping log
statements.
Indexing document, index [ppkc], type [activities], key
[5260d986257c472db42d405f91158062]
[Stacy X] processing [update-mapping [ppkc][activities]]: execute
[Stacy X] [ppkc] update_mapping [activities] (dynamic)
[Stacy X] cluster state updated: version [8], source [update-mapping
[ppkc][activities]]
It's a pretty quick operation, but I don't understand why it is happening. I
am not using dynamic mapping so I am unsure why this is happening?
-- jim
dadoonet
(David Pilato)
September 20, 2011, 5:08am
2
Can you gist some activities documents ?
David
Le 20 sept. 2011 à 02:32, James Cook jcook@tracermedia.com a écrit :
It seems that every time I index a document, I get the update mapping log statements.
Indexing document, index [ppkc], type [activities], key [5260d986257c472db42d405f91158062]
[Stacy X] processing [update-mapping [ppkc][activities]]: execute
[Stacy X] [ppkc] update_mapping [activities] (dynamic)
[Stacy X] cluster state updated: version [8], source [update-mapping [ppkc][activities]]
It's a pretty quick operation, but I don't understand why it is happening. I am not using dynamic mapping so I am unsure why this is happening?
-- jim
kimchy
(Shay Banon)
September 20, 2011, 8:30am
3
If you are not using dynamic mapping, then you shouldn't see this messages.
Can you gist a recreation?
On Tue, Sep 20, 2011 at 8:08 AM, David Pilato david@pilato.fr wrote:
Can you gist some activities documents ?
David
Le 20 sept. 2011 à 02:32, James Cook jcook@tracermedia.com a écrit :
It seems that every time I index a document, I get the update mapping log
statements.
Indexing document, index [ppkc], type [activities], key
[5260d986257c472db42d405f91158062]
[Stacy X] processing [update-mapping [ppkc][activities]]: execute
[Stacy X] [ppkc] update_mapping [activities] (dynamic)
[Stacy X] cluster state updated: version [8], source [update-mapping
[ppkc][activities]]
It's a pretty quick operation, but I don't understand why it is
happening. I am not using dynamic mapping so I am unsure why this is
happening?
-- jim
James_Cook
(James Cook)
September 20, 2011, 10:00pm
4
Hmmm, well we aren't using dynamic mapping, but we do put our mappings into
a directory for ES to discover. Could it be that ES starts up with dynamic
mapping, then discovers the mapping files I have for each type? Then when I
index a document, it issues an update_mapping call even though I am indexing
a document to one of my types that is mapped?
kimchy
(Shay Banon)
September 20, 2011, 10:05pm
5
What do you mean by putting it in a directory for elasticsearch to discvoer?
Mappings in the config location are applied when the index gets created
(which happens before a document gets indexed).
On Wed, Sep 21, 2011 at 1:00 AM, James Cook jcook@tracermedia.com wrote:
Hmmm, well we aren't using dynamic mapping, but we do put our mappings into
a directory for ES to discover. Could it be that ES starts up with dynamic
mapping, then discovers the mapping files I have for each type? Then when I
index a document, it issues an update_mapping call even though I am indexing
a document to one of my types that is mapped?
James_Cook
(James Cook)
September 21, 2011, 3:41am
6
Right, but if I explicitly create the mappings using the API as part of the
index creation, I do not see the log statements in the original post.
[Stacy X] processing [update-mapping [ppkc][activities]]: execute
[Stacy X] [ppkc] update_mapping [activities] (dynamic)
[Stacy X] cluster state updated: version [8], source [update-mapping
[ppkc][activities]]
What triggers the update-mapping log statements, and why does it say
(dynamic)?
kimchy
(Shay Banon)
September 22, 2011, 11:11am
7
The log message comes from an index operation causing for un mapped fields
to be introduced. I think we can move faster I can somehow recreate it?
On Wed, Sep 21, 2011 at 6:41 AM, James Cook jcook@tracermedia.com wrote:
Right, but if I explicitly create the mappings using the API as part of the
index creation, I do not see the log statements in the original post.
[Stacy X] processing [update-mapping [ppkc][activities]]: execute
[Stacy X] [ppkc] update_mapping [activities] (dynamic)
[Stacy X] cluster state updated: version [8], source [update-mapping
[ppkc][activities]]
What triggers the update-mapping log statements, and why does it say
(dynamic)?
James_Cook
(James Cook)
September 22, 2011, 6:37pm
8
Thanks for the hint. I will look at our mappings and make sure no new
properties are being introduced. I will gist if that isn't the problem.
Thanks.