QueryPhaseExecutionException[[test][2]:
query[ConstantScore(:)],from[0],size[10],sort[<custom:"items.properties.color.orig":
org.elasticsearch.index.field.data.strings.StringFieldDataType$1@f590c6>]:
Query Failed [Failed to execute main query]]; nested: IOException[Can't
sort on string types with more than one value per doc, or more than one
token per field];
However, as far as I can tell, the mapping does in fact contain
"items.properties.color.orig", which is an unanalyzed string:
Yes, you can sort on "deeply nested field" (and you don't need to add properties to get there, i.e. it can be obj1.obj2.field3), but you can't
sort on a field with multiple values.
QueryPhaseExecutionException[[test][2]:
query[ConstantScore(:)],from[0],size[10],sort[<custom:"items.properties.color.orig":
org.elasticsearch.index.field.data.strings.StringFieldDataType$1@f590c6>]:
Query Failed [Failed to execute main query]]; nested: IOException[Can't
sort on string types with more than one value per doc, or more than one
token per field];
However, as far as I can tell, the mapping does in fact contain
"items.properties.color.orig", which is an unanalyzed string: Why does sorting fail here? · GitHub
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.