mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 13:38:49 +00:00
1959275622
We speak of the term vectors of a document, where each field has an associated stored term vector. Since by default we are requesting all the term vectors of a document, the HTTP request endpoint should rather be called `_termvectors` instead of `_termvector`. The usage of `_termvector` is now deprecated, as well as the transport client call to termVector and prepareTermVector. Closes #8484
41 lines
680 B
YAML
41 lines
680 B
YAML
---
|
|
"Realtime Term Vectors":
|
|
|
|
- do:
|
|
indices.create:
|
|
index: test_1
|
|
body:
|
|
settings:
|
|
index:
|
|
refresh_interval: -1
|
|
number_of_replicas: 0
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
body: { foo: bar }
|
|
|
|
- do:
|
|
termvectors:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
realtime: 0
|
|
|
|
- is_false: found
|
|
|
|
- do:
|
|
termvectors:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
realtime: 1
|
|
|
|
- is_true: found
|