I am using Elastic search "0.90.10", "lucene_version" : "4.6".
I am trying to use the new "simple_query_string" when I add to the flags
"PHRASE" I get "Unknown simple_query_string flag [PHRASE]]"
However If I add the "ALL" flag, it seems to work:
Here is a simple example of what I am doing:
{
"query": {
"filtered": {
"query": {
"simple_query_string": {
"query": "horse",
"fields": [
"sreferenceNumber^20",
"sTitle^2",
"sDescription"
],
"flags":"PHRASE",
"default_operator":"AND"
}
}
}
}
}
If I try that same query with the Flags set to all I get results.
Error I am getting, is:
ElasticSearchIllegalArgumentException[Unknown simple_query_string flag
[PHRASE]];
On Monday, 27 January 2014 13:08:45 UTC+2, loneparadox wrote:
Hello,
I am using Elastic search "0.90.10", "lucene_version" : "4.6".
I am trying to use the new "simple_query_string" when I add to the flags
"PHRASE" I get "Unknown simple_query_string flag [PHRASE]]"
However If I add the "ALL" flag, it seems to work:
Here is a simple example of what I am doing:
{
"query": {
"filtered": {
"query": {
"simple_query_string": {
"query": "horse",
"fields": [
"sreferenceNumber^20",
"sTitle^2",
"sDescription"
],
"flags":"PHRASE",
"default_operator":"AND"
}
}
}
}
}
If I try that same query with the Flags set to all I get results.
Error I am getting, is:
ElasticSearchIllegalArgumentException[Unknown simple_query_string flag
[PHRASE]];
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.