Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 25925 invoked from network); 20 Oct 2010 19:46:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Oct 2010 19:46:51 -0000 Received: (qmail 66521 invoked by uid 500); 20 Oct 2010 19:46:49 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 66253 invoked by uid 500); 20 Oct 2010 19:46:49 -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 66243 invoked by uid 99); 20 Oct 2010 19:46:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 19:46:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 19:46:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9KJkPZa001819 for ; Wed, 20 Oct 2010 19:46:25 GMT Message-ID: <11920398.17061287603985702.JavaMail.jira@thor> Date: Wed, 20 Oct 2010 15:46:25 -0400 (EDT) From: "Tanguy Moal (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-2171) Using stats feature over a function, Function returning as a field value In-Reply-To: <14822715.20051287399382510.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923127#action_12923127 ] Tanguy Moal commented on SOLR-2171: ----------------------------------- Hi Grant, For sure I see some kind of a relation with that issue, but I also think that having the result of the virtually defined field stored in each hit of the answer would be powerful. For example, one might define a distance field taking a pair of lat/long as parameters, compute the distance according to a pair of lat/long indexed in each hit, and have the ability to sort the results by ascending distance... Interesting for local-apps certainly! I can't see such an opportunity in the suggested issue, although it certainly fulfill the requirements expressed firstly in that issue's description... Combining this with the existant stats component would maximize flexibilty from my point of view. Did I miss something in the linked issue or does it also take into account the possibility to perform sorting and/or hits scores operations on the so-built response stream ? Kind regards, -- Tanguy Moal > Using stats feature over a function, Function returning as a field value > ------------------------------------------------------------------------ > > Key: SOLR-2171 > URL: https://issues.apache.org/jira/browse/SOLR-2171 > Project: Solr > Issue Type: New Feature > Components: Schema and Analysis, search > Environment: All > Reporter: Tanguy Moal > Priority: Minor > > In order to be able to take big advantage of the stats component, it would be great to be able to define a function as a field. > Returning the result of a function as a "virtual" field for each document for example, would enable us to have a much more advanced use of the stats component. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org