Is there a way to specify which fields to include/exclude from _all using
just the Java API? I'm currently indexing data using XContentBuilder (do
not have separate json mappings) like this:
XContentBuilder builder = jsonBuilder().startObject()
.field("datefield", new Date())
.field("astring", "blah")
.endObject();
I would like to exclude things like dates, numeric fields, etc. Is it
necessary to create json mappings to have this fine-grained of control?
Le 25 juin 2014 à 17:51:59, Ben Dotte (bdotte@widen.com) a écrit:
Hi,
Is there a way to specify which fields to include/exclude from _all using just the Java API? I'm currently indexing data using XContentBuilder (do not have separate json mappings) like this:
XContentBuilder builder = jsonBuilder().startObject()
.field("datefield", new Date())
.field("astring", "blah")
.endObject();
I would like to exclude things like dates, numeric fields, etc. Is it necessary to create json mappings to have this fine-grained of control?
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.