{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[query_string] query does not support [enable_position_increments]",
"line": 14,
"col": 34
}
],
"type": "parsing_exception",
"reason": "[query_string] query does not support [enable_position_increments]",
"line": 14,
"col": 34
},
"status": 400
}
QueryStringQueryBuilder defines the property as: private static final ParseField ENABLE_POSITION_INCREMENTS_FIELD = new ParseField("enable_position_increment"); (note, without the terminal 's')
So, is this a documentation issue, or a code issue? If I send the query without the terminal 's', it works, so seems like a documentation issue?
It looks like it was a typo was introduced in 5.0. I'll open a PR with a fix. For now use the name that works. I'll keep support for that name in the 5.x line of Elasticsearch and remove it in 6.0.
I'll add support for enable_position_increments and deprecate enable_position_increment. It'd be less work if I could just update the documentation but in this case the thing you are enabling is really called "position increments" not "position increment".
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.