Now, on Elasticsearch 6.1 _all is not recommended and include_in_all disallowed, so how can I set the fields which I want (or don't want) look for in the search ?
PS: I understand the reason _all is being removed due disk space and other things, and in fact, I don't want to use copy_to too, I just want set the fields to perform the search.
1 is probably going to be the easiest, though if you have control over the application that's querying Elasticsearch, you could specify a more exact set of fields at query time which may be better if you don't want to define the same defaults for any app using the index.
But those fields are not searchable (seems to not work).
How can I set more than one field to index.query.default_field ?
PS: Some fields I have the same name or more than one type (i.e.: my_type and my_type_2 have the same property name). So, to define may I should specify the object type as well (I.e.: my_type.name) ?
Now if you do GET /t/my_type/_search?q=quick or GET /t/my_type/_search?q=brown you'll get the hit and if you do GET /t/my_type/_search?q=fox or GET /t/my_type/_search?q=jumped you'll get 0 hits.
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.