Get termvectors in search result


#1

I am trying to get termvectors in search result:
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-termvectors.html

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 https://django-haystack.readthedocs.io/en/v2.5.0/)


(Adrien Grand) #2

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


#3

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


(system) #4