An internal error happens when I do a "suggest" query. I get "TokenStream
contract violation: close() call missing"
This only happens when I add `pre_filter` to the suggest body.
{
'text': 'my term',
'suggest' : {
'phrase' : {
'field' : 'title',
'direct_generator' : [
{
'field' : 'title.suggest',
'suggest_mode': 'always',
'pre_filter': 'autocomplete' // <-- this
triggers the problem
}
]
}
}
}
However, I need pre_filter to achieve the desired outcome.
According the this thread
<http://elasticsearch-users.115913.n3.nabble.com/TokenStream-contract-violation-error-after-update-to-0-90-10-td4047479.html>
the
problem may be caused by old jar files that are not aware of a stricter
process flow lucene expects to be followed.
The thread suggests looking for old jars related to lucene - but the only
ones I find are in /usr/share/elasticsearch/lib/, and they are all version
4.10.2 - which is after when the thread says the fix was applied.
This problems affects me on elastic search version 1.3 and 1.4. I have
tried reinstalling elasticsearch and the problem still happens.
Has anyone else had this problem?
--
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/a22f3427-f6ac-4965-a27a-4879d3e6c851%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.