Skip to content

Commit

Permalink
Merge pull request #532 from romainruaud/backport_term-vectors
Browse files Browse the repository at this point in the history
Backport term vectors enhancement from 2.4.x
  • Loading branch information
afoucret authored Sep 18, 2017
2 parents c273b23 + add1bf5 commit 6940f44
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ private function getTermVectors(RequestInterface $request)
'type' => $request->getType(),
'id' => '',
'term_statistics' => true,
'dfs' => true,
];

$termVectorsQuery['body']['doc'] = [MappingInterface::DEFAULT_SPELLING_FIELD => $request->getQueryText()];
Expand Down

0 comments on commit 6940f44

Please sign in to comment.