In my type mapping, I would need a field named "title", with type always defined as "string", which would be reused several times in different sub-objects or nested sub-objects (i.e. at different levels)
I would like to know if I can use different "index" options (sometimes "analyzed", "not_analyzed" or even "no") depending of the location where the "title" field appears in my whole type mapping
I read and know we cannot change the field type, i.e. from "string" to "integer", but what about the other settings like the "index" option?
Hello,
Not sure to really understand but example below works with a field name title at root of document type (with not_analyzed) and in sub object which is analyzed
Then if you test the first request, you'll see that there is no match searching only "some" in root title field because it is not analysed (same search with "some title" will return doc.
Second search will works since field someObject.title is analysed.
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.