File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
docs/reference/mapping/types Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,23 @@ GET my-index-000001/_search
70
70
}
71
71
}
72
72
}
73
+
74
+ GET my-index-000001/_search
75
+ {
76
+ "query": { <6>
77
+ "term": {
78
+ "topics": "economics"
79
+ }
80
+ }
81
+ }
73
82
--------------------------------------------------
74
83
75
84
<1> Rank features fields must use the `rank_features` field type
76
85
<2> Rank features that correlate negatively with the score need to declare it
77
86
<3> Rank features fields must be a hash with string keys and strictly positive numeric values
78
87
<4> This query ranks documents by how much they are about the "politics" topic.
79
88
<5> This query ranks documents inversely to the number of "1star" reviews they received.
89
+ <6> This query returns documents that store the "economics" feature in the "topics" field.
80
90
81
91
82
92
NOTE: `rank_features` fields only support single-valued features and strictly
You can’t perform that action at this time.
0 commit comments