Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E0051894F for ; Wed, 8 Jul 2015 21:21:02 +0000 (UTC) Received: (qmail 51764 invoked by uid 500); 8 Jul 2015 21:20:58 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 51690 invoked by uid 500); 8 Jul 2015 21:20:58 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 51673 invoked by uid 99); 8 Jul 2015 21:20:58 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 21:20:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D2208D31CA for ; Wed, 8 Jul 2015 21:20:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.212 X-Spam-Level: * X-Spam-Status: No, score=1.212 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id G0DX9cLkS9p6 for ; Wed, 8 Jul 2015 21:20:51 +0000 (UTC) Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 88DD843DF1 for ; Wed, 8 Jul 2015 21:20:51 +0000 (UTC) Received: by iecvh10 with SMTP id vh10so164686251iec.3 for ; Wed, 08 Jul 2015 14:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fxOseBEVrUfihLiyVdIbp7q5FyAOSwUQ1+4X01EcF+s=; b=OxTfpZFsU3RuYYMMgvfEB8aoiZmvyF0vz7FsHsccpENNlsDtbnF6Q/py1D2x4dgW4n pmaRseyHXiDDscwLXjdOzP6ftuncSZuSAB+EiOtRBrJhWS7FY2oQxCG6Iptb/MWBtGSb x1tcmCPaBC63S1KWTrXK47EA+1pPOH0CGYC+5L8O5koCBcfE/qSWcAeLlqXlj0Ihkmqd LUBOUnppv0RjrHWNKBj6BWhrZsNNol9paenB0vaJpnFAZfb+evUg261PxxnR/qfUBtNe 32qiCCNbbAIN4lqAGFisOE0ONVoP3bqRGdXKy3eS4ybx4CjnrgT3UQrLyS31/1LM37FZ Fouw== MIME-Version: 1.0 X-Received: by 10.50.111.231 with SMTP id il7mr12003397igb.23.1436390445033; Wed, 08 Jul 2015 14:20:45 -0700 (PDT) Received: by 10.107.154.145 with HTTP; Wed, 8 Jul 2015 14:20:44 -0700 (PDT) In-Reply-To: <1436389207373-4216424.post@n3.nabble.com> References: <1436378586653-4216396.post@n3.nabble.com> <5803E7AE-0442-45F2-A7D3-E17E4463030C@gmail.com> <1436389207373-4216424.post@n3.nabble.com> Date: Wed, 8 Jul 2015 14:20:44 -0700 Message-ID: Subject: Re: Adding field to query result From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Yes, product is a function query and yes you can write your own. Score is a _really_ special field, accessed with even referenced differently by just the plain score "field". You can also use "doc transformers" to return things like which shard the doc came from, but that's a different syntax just to make it confusing [shard], see: https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents And you can make a custom one of these too, a place to start would be TestCustomDocTransformer in the Solr tests. Best, Erick On Wed, Jul 8, 2015 at 2:00 PM, Maya G wrote: > Hey, > > Thanks for your response. > > Yes, I think what I'm looking for is a pseudo field. > Is the "product" function a funtion query? > I assume I can replace the the "product" function in an implementation of my > own. > > BTW - is the score field a pseudo field? > > Maya > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Adding-field-to-query-result-tp4216396p4216424.html > Sent from the Solr - User mailing list archive at Nabble.com.