89a1cefde1
This is a change in search result behavior in that location information is no longer provided by default with search results. Although this looks like a wide-ranging change, it's mostly a mechanical replacement of the explain bool flag with a new search.SearcherOptions struct, which holds both the Explain bool flag and the IncludeTermVectors bool flag.
39 lines
576 B
JSON
39 lines
576 B
JSON
[
|
|
{
|
|
"search": {
|
|
"from": 0,
|
|
"size": 10,
|
|
"query": {
|
|
"field": "manages.reports",
|
|
"term": "julián"
|
|
},
|
|
"includeLocations": true
|
|
},
|
|
"result": {
|
|
"total_hits": 1,
|
|
"hits": [
|
|
{
|
|
"id": "emp10508560",
|
|
"locations": {
|
|
"manages.reports": {
|
|
"julián": [
|
|
{
|
|
"pos": 2,
|
|
"start": 7,
|
|
"end": 14,
|
|
"array_positions":[0]
|
|
},
|
|
{
|
|
"pos": 2,
|
|
"start": 8,
|
|
"end": 15,
|
|
"array_positions":[3]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |