elasticsearch-php

Return position and highlighting of search queries in Elasticsearch

大城市里の小女人 提交于 2021-01-29 18:05:30
问题 I am using the official Elasticsearch-PHP client installed on a personal Debian server, and what I am trying to do involves indexing, searching and highlighting individual documents. i.e. each search result will only return one document - which will then be highlighted for "simple query string" searches. I am also using FVH (fast vector highlighting). My question is similar to this one Position as result, instead of highlighting and the test code is basically the same so I won't repeat that