field("filter", new String[]{"lowercase"}).endObject();
b.endObject().endObject().endObject();
And then use it to index Documents.
And I use faceting (termsStats) to do some aggregation.
This works great till I don't change the mapping.
When I add new mapping (new term), the term stats behaves weired. Though I
use the "Not analyzed" term for faceting it gives me tokenized result.
But this does not happen for rest of the old terms.
Am I missing something here. I tried doing forceRefresh but does not help.
Would really appreciate if someone can throw some light.
Realized that when I add a new term in the mapping it ignores the
"not_analyzed" part and uses the default analyzer. Not sure why.
And that's the reason the termsStatsFacet is returning wrong results.
field("filter", new String[]{"lowercase"}).endObject();
b.endObject().endObject().endObject();
And then use it to index Documents.
And I use faceting (termsStats) to do some aggregation.
This works great till I don't change the mapping.
When I add new mapping (new term), the term stats behaves weired. Though I
use the "Not analyzed" term for faceting it gives me tokenized result.
But this does not happen for rest of the old terms.
Am I missing something here. I tried doing forceRefresh but does not help.
Would really appreciate if someone can throw some light.
Realized that when I add a new term in the mapping it ignores the
"not_analyzed" part and uses the default analyzer. Not sure why.
And that's the reason the termsStatsFacet is returning wrong results.
field("filter", new String[]{"lowercase"}).endObject();
b.endObject().endObject().endObject();
And then use it to index Documents.
And I use faceting (termsStats) to do some aggregation.
This works great till I don't change the mapping.
When I add new mapping (new term), the term stats behaves weired. Though
I use the "Not analyzed" term for faceting it gives me tokenized result.
But this does not happen for rest of the old terms.
Am I missing something here. I tried doing forceRefresh but does not help.
Would really appreciate if someone can throw some light.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.