To do mapping on Elasticsearch 5.x I use
_all enabled => true and for each field which I don't want to look for, I set
include_in_all => false. I.e.:
'_all' => array( 'enabled' => false ), 'properties' => array( 'relevant_search_field' => array( 'type' => 'text', ), 'value_needed_but_not_searchable' => array( 'type' => 'text', 'include_in_all'=> false ) )
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.