Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 41090 invoked from network); 29 Apr 2009 14:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 14:45:12 -0000 Received: (qmail 79306 invoked by uid 500); 29 Apr 2009 14:45:11 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 79240 invoked by uid 500); 29 Apr 2009 14:45:11 -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 79230 invoked by uid 99); 29 Apr 2009 14:45:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 14:45:11 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.217.167] (HELO mail-gx0-f167.google.com) (209.85.217.167) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 14:45:02 +0000 Received: by gxk11 with SMTP id 11so2367622gxk.5 for ; Wed, 29 Apr 2009 07:44:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.75.3 with SMTP id c3mr1559049ybl.86.1241016280655; Wed, 29 Apr 2009 07:44:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Apr 2009 20:14:40 +0530 Message-ID: Subject: Re: function query scoring From: Umar Shah To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Apr 29, 2009 at 7:16 PM, Andrey Klochkov wrote: > Hi! > > Base on docs in the wiki I thought that the following query should return > constant score "5" for all "socks" in the index: > > http://localhost:8080/solr/select?q=3Dname:socks _val_:5&fl=3Dname,score the intended query should looklike http://localhost:8080/solr/select?q=3D_val_:5&fl=3Dname,score&fq=3Dname:soc= ks return all docs with name containing socks with constant score of 5 > > But in fact it finds all the products in the index and it seems that > "socks" products have higher score than others. What I need and what > function query seems have to do is to find ONLY socks and assign constant > score to all of them. Isn't it correct? I took =A0function query with con= stant > value just as an example. > > -- > Andrew Klochkov > --=20 Umar Shah Research Engineer Wisdomtap Solutions India (P) Ltd. --------------------------------------------------------------------------- Get WisdomRank for your products @ http://services.wisdomtap.com View opinions and recommendations about: Point and Shoot Cameras, DSLRs Lenses at http://www.wisdomtap.com/camera/ Mobile Phones at http://www.wisdomtap.com/mobile Access above services from your mobile devices from http://m.wisdomtap.com --------------------------------------------------------------------------