Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C170318B7D for ; Wed, 28 Oct 2015 02:28:28 +0000 (UTC) Received: (qmail 83215 invoked by uid 500); 28 Oct 2015 02:28:28 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 82965 invoked by uid 500); 28 Oct 2015 02:28:28 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 82523 invoked by uid 99); 28 Oct 2015 02:28:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 02:28:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F0BCA2C1F56 for ; Wed, 28 Oct 2015 02:28:27 +0000 (UTC) Date: Wed, 28 Oct 2015 02:28:27 +0000 (UTC) From: "Erick Erickson (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SOLR-8220) Read field from docValues for non stored fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-8220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977601#comment-14977601 ] Erick Erickson edited comment on SOLR-8220 at 10/28/15 2:27 AM: ---------------------------------------------------------------- bq: The sort field values returned in the first phase of distributed search aren't obtained from stored field values. Thanks, I suspect I was inappropriately generalizing from the ..... Which answers how sort values get returned from non-stored fields.... I suspect that practically it doesn't matter since to get a single field you have to decompress a 16K block, so getting the ID to be fetched from the DV field should be a win... was (Author: erickerickson): bq: The sort field values returned in the first phase of distributed search aren't obtained from stored field values. Thanks, I suspect I was inappropriately generalizing from the ..... Which answers how sort values get returned from non-stored fields.... > Read field from docValues for non stored fields > ----------------------------------------------- > > Key: SOLR-8220 > URL: https://issues.apache.org/jira/browse/SOLR-8220 > Project: Solr > Issue Type: Improvement > Reporter: Keith Laban > > Many times a value will be both stored="true" and docValues="true" which requires redundant data to be stored on disk. Since reading from docValues is both efficient and a common practice (facets, analytics, streaming, etc), reading values from docValues when a stored version of the field does not exist would be a valuable disk usage optimization. > The only caveat with this that I can see would be for multiValued fields as they would always be returned sorted in the docValues approach. I believe this is a fair compromise. > I've done a rough implementation for this as a field transform, but I think it should live closer to where stored fields are loaded in the SolrIndexSearcher. > Two open questions/observations: > 1) There doesn't seem to be a standard way to read values for docValues, facets, analytics, streaming, etc, all seem to be doing their own ways, perhaps some of this logic should be centralized. > 2) What will the API behavior be? (Below is my proposed implementation) > Parameters for fl: > - fl="docValueField" > -- return field from docValue if the field is not stored and in docValues, if the field is stored return it from stored fields > - fl="*" > -- return only stored fields > - fl="+" > -- return stored fields and docValue fields > 2a - would be easiest implementation and might be sufficient for a first pass. 2b - is current behavior -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org