TermVector API in Java


I would like to use the termvector API in Java , but I have some issues. I
tried the following code, but didn't get any term vectors in the response

final TermVectorResponse termVectorResponse = getClient().termVector(new TermVectorRequest()





  .selectedFields(new String[]{"main", "abs", "title"}))

  1. Do I have to define a mapping upfront, or can how does ElastiSearch
    handle string fields

  2. Do I have to user another API? I could not find any method like
    "getTerms" or so in the API.

Thanks a lot!


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4aeaf3af-bd9d-433e-90d9-a50b1bbbdd8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.