Wildcard query limit?

This is a Lucene hard coded limit in IndexWriter.MAX_TERM_LENGTH which is
documented :

« Absolute hard maximum length for a term, in bytes once encoded as UTF8.
If a term arrives from the analyzer longer than this length, it is skipped
and a message is printed to infoStream, if set (see
IndexWriterConfig.setInfoStream(InfoStream)http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/index/IndexWriterConfig.html#setInfoStream(org.apache.lucene.util.InfoStream)).
»

I don't know a way to change it.

If you need exact match on a long text, you maybe want to sha1 the text and
search on it. The term will be constant size and the search should be more
efficient.

Jérôme Mainaud

Le 8 mai 2013 17:28, "Nick Ricketts" nightshade427@gmail.com a écrit :

Ya, I was curious of size limit. For this query we really use text/term
since I do have text to match it against. The "*" query was just a simple
query to post to forum to highlight the issue of field size limit being a
possible issue for us down the road. Especially since it isn't mentioned
anywhere I could find.

If we do run into that issue later is there a way to increase that limit?

--
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+unsubscribe@googlegroups.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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.