Ok, that make sense. My problem then is that in our existing solution, we
have a search where contains with texts matches the exact sentence part,
_all = "part of a sentence"
Where all of these will match:
"This is a part of a sentence"
"bigpart of a sentence-that-is-big"
but this will not match:
"A sentence part this is of"
I can use text-query to match that all the phrases are present, but then
the order part of the query disappears. Is there another way I can achieve
this when matching against all fields?
On Sun, Mar 25, 2012 at 1:57 PM, Shay Banon firstname.lastname@example.org wrote:
You don't want to set the analyzer for _all to be keyword, _all is an
aggregation of all the other fields int the doc, so you basically treat the
whole aggregation of text as a single token.
On Fri, Mar 23, 2012 at 4:28 PM, Runar Myklebust email@example.com:
Hi, Im having a bit of trouble to set the analyzer for the _all - field
to "keyword", and "not_analyzed" isnt working either.
In this gist, I have store data as showed, executes the query but I get
no results. If I execute query against the field "data_textfield" directly,
I get the result: