I have seen that in past but with analysis plugins.
Any chance you are using a plugin and did not update it ?

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 16 févr. 2014 à 14:27, Zhihai Xian <[email protected]> a écrit :

Hi 

After upgrading to elasticsearch 1.0.0, I got a suggestion search error:

RemoteTransportException[[data98][inet[/172.28.96.98:9300]][search/phase/query]];
 nested: IllegalStateException[TokenStream contract violation: close() call 
missing]; }]

I found that the problem come with the suggestion query: 

"suggest" : {
    "text" : "Xor the Got-Jewel",
    "simple_phrase" : {
      "phrase" : {
        "analyzer" : "body",
        "field" : "bigram",
        "size" : 4,
        "real_word_error_likelihood" : 0.95,
        "confidence" : 2.0,
        "gram_size" : 2,
        "direct_generator" : [ {
          "field" : "body",
          "suggest_mode" : "always",
          "min_word_length" : 1
        }, {
          "field" : "reverse",
          "suggest_mode" : "always",
          "min_word_length" : 1,
          "pre_filter" : "reverse",
          "post_filter" : "reverse"
        } ]
      }
    }
  }
If I remove the last two lines for pre_filter and post_filter, the search will 
be fine, but the suggestion result will not be expected.

 "pre_filter" : "reverse",
 "post_filter" : "reverse"
Is there any solution on the above issue?



-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a6ab296e-f49e-4fcc-a7bc-a1ca32f0988e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/FEC3FEBF-B8E5-43A5-8654-393B200A3785%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to