We would want to include a wildcards in a query_string query when looking
for a phrase.
When we search with following query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great match""
}
}
*Output: *4 records (returning all 4 records which contain "great match" in
phrase.)
But, when I search with below query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great ma*""
}
}
Output: 10 records (returning all records which has either great or match
with ma* or both.)
is it possible to include a wildcards in a query_string query when looking
for a phrase?
We would want to include a wildcards in a query_string query when looking
for a phrase.
When we search with following query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great match""
}
}
Output: 4 records (returning all 4 records which contain "great match" in
phrase.)
But, when I search with below query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great ma*""
}
}
Output: 10 records (returning all records which has either great or match
with ma* or both.)
is it possible to include a wildcards in a query_string query when looking
for a phrase?
On Wed, Oct 9, 2013 at 12:17 PM, Ankit Jain <ankitj...@gmail.com<javascript:>>
wrote:
Hi All,
We would want to include a wildcards in a query_string query when
looking
for a phrase.
When we search with following query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great match""
}
}
Output: 4 records (returning all 4 records which contain "great match"
in
phrase.)
But, when I search with below query:
{
"query":{
"query_string":{
"default_operator" : "AND"
"analyze_wildcard": true,
"default_field":"value",
"query":""great ma*""
}
}
Output: 10 records (returning all records which has either great or
match
with ma* or both.)
is it possible to include a wildcards in a query_string query when
looking
for a phrase?
Regards,
Ankit Jain
--
You received this message because you are subscribed to the Google
Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
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.