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

Mark Miller edited comment on LUCENE-1909 at 11/12/09 6:47 PM:
---------------------------------------------------------------

heh - well, if you want to be lazy with the admin code, you can just plug in 1. 
Do you really need a Lucene constant to tell you that a divisor of 1 is no 
divisor?

eg - Lucene is not using that default in a way that you guys are arguing users 
would want to - its using it to set the thing as off. Perhaps it shouldnt have 
default in its name - being internal, it kind of doesn't matter though. Really 
its just saying, the divisor is off. You don't really need to worry about what  
the number is - its just avoiding a magic number in Lucene code.

eg - there is no default number as far as the user should be concerned. The 
default is that the IndexReader divisor feature is off.

      was (Author: markrmil...@gmail.com):
    heh - well, if you want to be lazy with the admin code, you can just plug 
in 1. Do you really need a Lucene constant to tell you that a divisor of 1 is 
no divisor?

eg - Lucene is not using that default in a way that you guys are arguing users 
would want to - its using it to set the thing as off. Perhaps it shouldnt have 
default in its name - being internal, it kind of doesn't matter though. Really 
its just saying, the divisor is off. You don't really need to worry about what  
the number is - its just avoiding a magic number in Lucene code.
  
> 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