Elasticsearch Java API add direct generators to phrase suggester


(Nariman Esmaiely Fard) #1

I was looking for an example to add direct generator to phrase suggester using elasticsearch java API. There are a lot of weired parameters when I'm creating DirecCandidateGenrator object. for example why should I give it a lucene IndexReader and how should I create it?

DirectCandidateGenerator(DirectSpellChecker spellchecker, String field, SuggestMode suggestMode, IndexReader reader, double nonErrorLikelihood, int numCandidates)

DirectCandidateGenerator(DirectSpellChecker spellchecker, String field, SuggestMode suggestMode, IndexReader reader, double nonErrorLikelihood, int numCandidates, Analyzer preFilter, Analyzer postFilter, Terms terms)


(system) #2

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