Skip to content

Define Slot

Edit page
PUT /test/define-slot/doc
{
"foo": {
"_type": "text",
"_value": "foo and bar",
"_index": "field_values",
"_slot": 100
}
}
GET /test/define-slot/
INFO /test/define-slot/doc
SEARCH /test/define-slot/
{
"_query": {
"_id": "doc"
}
}

Search document with _slot by a range of its value

Section titled “Search document with _slot by a range of its value”
SEARCH /test/define-slot/
{
"_query": {
"foo": {
"_in": {
"_range": {
"_from": "foo and bar",
"_to": "foo and bar"
}
}
}
}
}