You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/03/05 19:20:45 UTC

[jira] [Commented] (LUCENE-5490) make LengthFilterFactory's min/max args have sensible defaults

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org