lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Updated] (SOLR-3855) DocValues support
Date Fri, 05 Oct 2012 14:40:02 GMT


Adrien Grand updated SOLR-3855:

    Attachment: SOLR-3855.patch

Initial patch:

DocValues can be:
 - configured on a per-field-type basis (docValueType=...),
 - enabled on a per-field basis (docValues=true/false)

and are available for the following field types:
 - StrField,
 - UUIDField,
 - Trie*Field,
 - BoolField.

When doc values are enabled, they have precedence over the field cache for {{getValueSource}}
and {{getSortField}}, however faceting and stats cannot use doc values yet (I would like to
do this as a separate issue).

I force fields that have doc values enabled to be single-valued and to be either required
or have a default value.

I also modified a lot of code (ReturnFields especially) to make DocValues behave like stored
fields. I think this would be great for ID fields. In a cluster that has {{numShards}} shards,
it would help decrease the number of disk seeks in the .fdt file (which is often too big to
fit entirely in the OS cache) per request from {{(numShards * (start + rows) + rows)}} to

The patch is not committable yet, and I have {{BasicDistributedZkTest.testDistribSearch}}
that always fails (not sure why yet...) but I'd love to have some feedback to know whether
it is going in the right direction.
> DocValues support
> -----------------
>                 Key: SOLR-3855
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 4.1, 5.0
>         Attachments: 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message