How to get splited tokens of query、 best matched document and those document's term vector at the same time when searching in elasticsearch

I want to recalculate the score according to the tf and idf according to the term_vector from elasticsearch, so I need :

  • query's tokens splitted by analyzer(i use ik_max_word) of elasticsearch
  • best matched document id
  • the term_vector of best matched document

I also find the ways to get all those infos by three step:

In other words, I need three times request result from es server. Any method i get all those infos from es in one time?


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