You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2013/02/12 11:51:13 UTC

[jira] [Updated] (SOLR-3855) DocValues support

     [ https://issues.apache.org/jira/browse/SOLR-3855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrien Grand updated SOLR-3855:
-------------------------------

    Attachment: SOLR-3855.patch

New patch based on the new DV API:
 - Doc values can be enabled on a per-field basis (add docValues="true" to your field definition).
 - I added support for doc values to StrField, UUIDField and all Trie*Field.
 - The doc values type can be configured on the fieldType. For example, if your string fields are unique (or almost unique), you can add docValuesType="binary" instead of "sorted" to the fieldType definition.
 - When a field has doc values, it needs to be single-valued and to be either required or have a default value. So things like sortMissingFirt/Last don't make sense when a field has doc values.
 - By using a SchemaCodecFactory, you can configure the DocValuesFormat you want to use (Lucene42/Disk/SimpleText/CheapBastard/AddYourOwnHere).

A good news is that thanks to the refactoring of the FieldCache API, faceting will work on fields with doc values out of the box.
                
> 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.2, 5.0
>
>         Attachments: SOLR-3855.patch, 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org