I'm doing a text phrase query for "benjamin.mccann@gmail.com" and it
returned all the results below. Is text phrase the wrong kind of query? I
tried a term query and that returned 0 results.
I'm doing a text phrase query for "benjamin.mccann@gmail.com" and it
returned all the results below. Is text phrase the wrong kind of query? I
tried a term query and that returned 0 results.
Just tried the second suggestion and it didn't seem to work. The query
still returned too many results:
SearchRequest request = new SearchRequest(index)
.types(type)
.source(new SearchSourceBuilder()
.query(QueryBuilders.queryString(""benjamin.mccann@gmail.com
"").field("emails.raw")));
I'm doing a text phrase query for "benjamin.mccann@gmail.com" and it
returned all the results below. Is text phrase the wrong kind of query? I
tried a term query and that returned 0 results.
On Fri, Apr 13, 2012 at 4:29 AM, Ben McCann ben@benmccann.com wrote:
Just tried the second suggestion and it didn't seem to work. The query
still returned too many results:
SearchRequest request = new SearchRequest(index)
.types(type)
.source(new SearchSourceBuilder()
I had exactly the same problem with some name data I want to query as
terms...
the multi mapping to create the email.raw type field referred to above
looks like this:
From what I can see we are also at the mercy of the query parser
analyser which seems to breaks things like benjamin.mcc...@gmail.com
into "benjamin mcc gmail com" on the way in when you use a term query
Just tried the second suggestion and it didn't seem to work. The query
still returned too many results:
SearchRequest request = new SearchRequest(index)
.types(type)
.source(new SearchSourceBuilder()
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.