i added a new field "ordershow " to set a number of order blogs. how can i use this field in a query?
i checked the index otion and i have this field when i run the query: "Blog.ordershow"
{
"query": {
"term" : { "Content.ContentItem.ContentType" : "Blog" }
},
"sort": { "Content.ContentItem.Blog.ordershow": { "order": "asc" } } ,
"size": 3
}
For @Skrypt
{
"query": {
"term": {
"Content.ContentItem.ContentType": "Blog"
}
},
"sort": {
"Content.ContentItem.Blog.ordershow": {
"order": "asc",
"type": "double"
}
},
"size": 3
}
We are missing documentation on how to select the proper type on a sort query.
See https://lucene.apache.org/core/7_3_1/core/org/apache/lucene/search/SortField.Type.html
I'm closing as this is a duplicate of #3278