You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyzed string fields are also multivalue fields,((("strings", "sorting on string fields")))((("analyzed fields", "string fields")))((("sorting", "string sorting and multifields"))) but sorting on them seldom
5
+
gives you the results you want. If you analyze a string like `fine old art`,
6
+
it results in three terms. We probably want to sort alphabetically on the
7
+
first term, then the second term, and so forth, but Elasticsearch doesn't have this
8
+
information at its disposal at sort time.
4
9
5
-
被解析的字符串字段也是多值字段,((("strings", "sorting on string fields")))((("analyzed fields", "string fields")))((("sorting", "string sorting and multifields"))) 但是很少会按照你想要的方式进行排序。如果你想分析一个字符串,如 `fine old art` ,
The naive approach to indexing the same string in two ways would be to include
19
+
two separate fields in the document: one that is `analyzed` for searching,
20
+
and one that is `not_analyzed` for sorting.
27
21
22
+
But storing the same string twice in the `_source` field is waste of space.
23
+
What we really want to do is to pass in a _single field_ but to _index it in two different ways_. All of the _core_ field types (strings, numbers,
24
+
Booleans, dates) accept a `fields` parameter ((("mapping (types)", "transforming simple mapping to multifield mapping")))((("types", "core simple field types", "accepting fields parameter")))((("fields parameter")))((("multifield mapping")))that allows you to transform a
0 commit comments