Get termvectors in search result


I am trying to get termvectors in search result:

I need to know for every result text what words it consist from search query. How?
(also cannot get this for python connector to elasticsearch

(Adrien Grand) #2

You could call the term vectors API on every hit of the search response?


the question is: can such approach be more fast/stable than parsing highlight string in Python code?
Need testing i think

(system) #4