OpenSearch/docs/reference/search
Jim Ferenczi 5b73a1bc7d
Add an option to force the numeric type of a field sort (#38095) (#40084)
This change adds an option to the `FieldSortBuilder` that allows to transform the type
of a numeric field into another. Possible values for this option are `long` that transforms
the source field into an integer and `double` that transforms the source field into a floating point.
This new option is useful for cross-index search when the sort field is mapped differently on some
indices. For instance if a field is mapped as a floating point in one index and as an integer in another
it is possible to align the type for both indices using the `numeric_type` option:

```
{
   "sort": {
    "field": "my_field",
    "numeric_type": "double" <1>
   }
}
```

<1> Ensure that values for this field are transformed to a floating point if needed.
2019-03-18 09:32:45 +01:00
..
request Add an option to force the numeric type of a field sort (#38095) (#40084) 2019-03-18 09:32:45 +01:00
suggesters Edits to text in Phrase Suggester doc (#38966) 2019-02-20 12:35:21 +01:00
count.asciidoc Deprecate types in count and msearch. (#35421) 2018-11-16 13:04:43 -08:00
explain.asciidoc Deprecate types in explain requests. (#35611) 2018-12-10 19:45:13 -08:00
field-caps.asciidoc Fix typos in Field-Caps documentation (#38580) 2019-02-11 20:58:31 +01:00
multi-search.asciidoc Fix typo in multi-search.asciidoc (#37060) 2019-01-02 10:32:42 +01:00
profile.asciidoc Edits to text of Profile API documentation (#38742) 2019-02-13 10:08:50 +01:00
rank-eval.asciidoc [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00
request-body.asciidoc [DOCS] Replaces CCS terms with attributes (#40076) 2019-03-15 07:57:51 -07:00
search-shards.asciidoc Default to one shard (#30539) 2018-05-14 12:22:35 -04:00
search-template.asciidoc Remove references to multiple types in the search documentation. (#34625) 2018-10-19 09:47:34 -07:00
search.asciidoc Remove references to multiple types in the search documentation. (#34625) 2018-10-19 09:47:34 -07:00
suggesters.asciidoc [Docs] Emphazise suggest behaviour with missing query part (#35393) 2018-11-28 12:01:27 +01:00
uri-request.asciidoc Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
validate.asciidoc Use new bulk API endpoint in the docs (#37698) 2019-01-23 09:46:28 +01:00