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 EBAE810177 for ; Mon, 22 Apr 2013 22:58:45 +0000 (UTC) Received: (qmail 37561 invoked by uid 500); 22 Apr 2013 22:58:42 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 37498 invoked by uid 500); 22 Apr 2013 22:58:42 -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 37489 invoked by uid 99); 22 Apr 2013 22:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 22:58:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 22:58:37 +0000 Received: by mail-vc0-f170.google.com with SMTP id hv10so6064vcb.1 for ; Mon, 22 Apr 2013 15:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=LCJf6Wu3XYtlH6DqlFPKjo0zXlkIIUobBCI6FcabT5U=; b=s4UJ7z3jDZLf3eLLDXWTA+vCqDfVW+YATfJbyaeNpWRaPQAoANA25tlT3CPM7VDVcO Q6STWY/QIjIj0zm5gQXYD9fuxXxc20vDbv/t4o9HF4ye5vzSqSHR5gOZLVXoOR0UmUUo LR2pz0UBbUlhE8LXOqUmBP2pQToa4KLxwphVevPsWnSZfvw850VlK1RtpXbjzz64/Tgx lxAR0ie7BmXS2P9Gk16QIuiyn9KCmD+Tv668FthmBai+AlLiojPc068SSEZ6zoA4dEvB rT5KzlEGDDgMVAqMxbYUaY2ySWO8+RYQOY6vr4J8k9b61sspVMAx+K4xr3/uEi/z4RLd WepA== MIME-Version: 1.0 X-Received: by 10.52.174.196 with SMTP id bu4mr17269794vdc.117.1366671195996; Mon, 22 Apr 2013 15:53:15 -0700 (PDT) Received: by 10.52.77.66 with HTTP; Mon, 22 Apr 2013 15:53:15 -0700 (PDT) In-Reply-To: <0E94E8504E30A34B9F5EC0A30F55C03D01A5A11F@server.prontosoft.by> References: <0E94E8504E30A34B9F5EC0A30F55C03D01A5A11F@server.prontosoft.by> Date: Mon, 22 Apr 2013 18:53:15 -0400 Message-ID: Subject: Re: ranking score by fields From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You can sometimes use the highlighter component to do this, but it's a little tricky... But note your syntax isn't doing what you expect. (field1:apache solr) parses as field1:apache defaultfield:solr. You want field1:(apache solr).... &debug=3Dall is your friend for these kinds of things, especially the parse= d query section.... Best Erick On Mon, Apr 22, 2013 at 4:44 AM, =D0=9A=D0=B0=D1=81=D0=BA=D0=B5=D0=B2=D0=B8= =D1=87 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 wrote: > Hi. > I want to make subject but don't know exactly how can I do it. > Example. > I have index with field1, field2, field3. > I make a query like: > (field1:apache solr) OR (field2:apache solr) OR (field3:apache solr) > And I want to know: is it found this doc by field1 or by field2 or by fie= ld3? > > I try to make like this: (field1:apache solr)^100 OR (field2:apache solr)= ^10 OR (field3:apache solr)^1 > But the problem is that I don't know range, minimum and maximum value of = score for each field. > With other types of similarities (BM25 or othres) same situation. > I cant find information about this in manual. > > Else, I try to use Relevance Functions, f.e. "termfreq" but it work only = with terms, not with phrases, like "apache solr". > > May be I miss something or you have other idea to do this? > And else, I am not a java programmer and best way for me don't write any= plugins for solr. > > Thanks. > Alex.