[ 
https://issues.apache.org/jira/browse/LUCENE-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777008#action_12777008
 ] 

Tim Smith commented on LUCENE-1909:
-----------------------------------

I have the following use case:

i have a configuration bean, this bean can be customized via xml at config time
in this bean, i expose the setting for the terms index divisor
so, my bean has to have a default value for this,

right now, i just use 1 for the default value.
would be nice if i could just use the lucene constant instead of using 1, as 
the lucene constant could change in the future (not really likely, but its one 
less constant i have to maintain)

if the default is not made public i have 2 options:
# use a hard coded constant in my code for the default value (doing this right 
now)
# use an Integer object, and have null be the default

the nasty part about the second option is that i now have to do conditional 
opening of the reader depending on if null is the value (unset), when it would 
be much simpler (and easier for me to maintain), if i just always pass in that 
value


> Make IndexReader.DEFAULT_TERMS_INDEX_DIVISOR public
> ---------------------------------------------------
>
>                 Key: LUCENE-1909
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1909
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Uwe Schindler
>            Priority: Trivial
>             Fix For: 3.0
>
>         Attachments: LUCENE_1909.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to