[
https://issues.apache.org/jira/browse/LUCENE-5490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921150#comment-13921150
]
Robert Muir commented on LUCENE-5490:
-------------------------------------
Given that both are inclusive, min=1 is the only "sensible" min.
zero-length term is just a trap (usually caused by tokenfilters e.g. regex'ing
away all the text).
> make LengthFilterFactory's min/max args have sensible defaults
> --------------------------------------------------------------
>
> Key: LUCENE-5490
> URL: https://issues.apache.org/jira/browse/LUCENE-5490
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Hoss Man
> Priority: Minor
>
> LengthFilterFactory's min/max args are currently required, but it seems like
> we could give them sensible defaults and make them optional...
> min = 0
> max = IndexWriter.MAX_TERM_LENGTH
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]