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

Robert Muir commented on LUCENE-5178:
-------------------------------------

{quote}
Shouldn't this be handled at the lucene level?
{quote}

Well thats the question with my last 2 paragraphs, where i list the tradeoffs 
between two approaches. I will hack up a patch to see just how bad it is to add 
this 'Bits getDocWithField' support. Then we can see this more visually.

{quote}
    There are currently one or two disadvantages to using docvalues in solr 
currently. The major disadvantage is being forced to specify a default value in 
Solr,

That's the major issue, to which you replied "why would have fields defined you 
arent using?". Although the lack of resolution on this issue would be an 
annoyance, the real problem is SOLR-5165. There should have never been a 
required default value for Solr, and it should be removed.
{quote}

I agree the default value is "brutal", but as far as I know, Adrien did it in 
this way to leave no surprises (so users arent complaining when things like 
sort missing last/first dont work).

Another approach would be (right now) to only fail when those options are set, 
another option would be to handle it at the solr fieldtype level.

But I'm happy to write a patch for it on the lucene side so we can see how 
complicated it really is, its better than arguing about it.

                
> doc values should allow configurable defaults
> ---------------------------------------------
>
>                 Key: LUCENE-5178
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5178
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>
> DocValues should somehow allow a configurable default per-field.
> Possible implementations include setting it on the field in the document or 
> registration of an IndexWriter callback.
> If we don't make the default configurable, then another option is to have 
> DocValues fields keep track of whether a value was indexed for that document 
> or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to