I have a mapping with fluent syntaxis where I carefully set only those fields I need. However when I add document to those index, i still see all fields from the object except thouse, who I manually add to ingore.
I don't really call something similar to.Automap() anywhere but it looks like it's a defult behaviour. How could I disable it and let only selected fields come to index, instead of all of them?
You need to specify the dynamic setting in your Index mapping. If you set it to false all fields not defined in the mapping will be silently ignored while if you set it to strict an exception is raised and the document fail to be indexed. See dynamic Mapping parameter.
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.