I have a problem with term suggester. I dont know what was happening. All 
friends, plz help me to explain it.

I have two 3 documents: [doc1:{content: "Anh yêu ta"},doc2:{content:"Anh 
yêu ta"}, doc3:"Anh yêu tí"] (content was indexed with vi_annalyzer)

I using term suggester as: SuggestionBuilder text = SuggestBuilder
.termSuggestion(Suggestion.DEFAULT_NAME).field("c").text("tí").minWordLength(2).size(1).suggestMode("missing");

I was received results from termsuggestion is:{text: "ta" , freq:2 , 
score:0.5} 

=> Why term suggestion is "ta" ?. In my thinking , no term suggestion will 
been returned. Plz help me to explain it. what it's wrong and how to fix 
it. Thanks all my friends!!!


This is config vi_annalyzer: 
index:
  analysis:
    analyzer:
      vi_analyzer:
        type: custom
        tokenizer: whitespace
        filter: [trim, lowercase, hunspell_vi]
    filter:
      hunspell_vi:
        type: hunspell
        locale: vi_VN 



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c6188c07-b722-4377-b478-bd8022c4b8e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to