TermVectors Java example

(Kyriakos) #1

Hello, i am trying to get the termvectors of an index but every example i find is for an older version of Elasticsearch so they don't work.

I tried to get the termvectors like this:

TermVectorsResponse resp = client.prepareTermVectors().setIndex("twitter")


But the response is org.elasticsearch.action.termvectors.TermVectorsResponse@54acff7d

Could you plesase provide me an example ?

Thank you

(Ryan Ernst) #2

TermVectorsResponse does not have a toString() implementation. You will need to look at the javadocs for the class to see how to look at everything it provides:

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.