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

Adrien Grand commented on SOLR-3855:
------------------------------------

Here are the details:
 - stored fields and doc values are considered very different features (with 
different parameter names in the schema to enable/disable them)
 - fl=* would only load stored fields by default (so fields that have doc 
values would also need to be stored if you want them to be loaded with fl=*),
 - the fl parameter can accept field names that have doc values but are not 
stored (and this would work as expected),
 - DocValues would be useful for documents' unique keys and version numbers 
(because having fast random access to these fields is important)
 - if the fl parameter only contains one field that has both doc values and 
stored fields enabled, it makes sense to use doc values (same number of disk 
seeks in the worst case). Otherwise, it should stick to stored fields by 
default. It might make sense to add an option to force doc values with several 
fields in the field list (fl.docValues=true?) but we should add appropriate 
warnings about it in the docs.

I'll update my patch soon. Yonik, please correct me if I'm wrong!
                
> DocValues support
> -----------------
>
>                 Key: SOLR-3855
>                 URL: https://issues.apache.org/jira/browse/SOLR-3855
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 4.1, 5.0
>
>         Attachments: SOLR-3855.patch, SOLR-3855.patch
>
>
> It would be nice if Solr supported DocValues:
>  - for ID fields (fewer disk seeks when running distributed search),
>  - for sorting/faceting/function queries (faster warmup time than fieldcache),
>  - better on-disk and in-memory efficiency (you can use packed impls).

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

Reply via email to