Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 80228 invoked from network); 15 Sep 2010 16:22:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 16:22:07 -0000 Received: (qmail 47525 invoked by uid 500); 15 Sep 2010 16:22:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 47348 invoked by uid 500); 15 Sep 2010 16:22:04 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 47340 invoked by uid 99); 15 Sep 2010 16:22:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 16:22:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iamjabour@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 16:21:59 +0000 Received: by wyf23 with SMTP id 23so503958wyf.35 for ; Wed, 15 Sep 2010 09:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FpcDNO6GcX77qz8ZiNxuy/N6OvSJoWI3091DTMNEeOg=; b=THBieNwFsvZQ4l79AITQrsPti5MpM3LW4R7RqnfRXvbvJisIhmGURLn9ZICa5DDJN0 O2Xy2ruzuMdRZj35V2Wa3yzxQ45slWYGKSom20nnoWqExxwdfog6ADC1Gh+L1YOp3M6G o6+OsJfRPtVDDHS9dbs3glbCPA0saV1Urw2Ic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MnJzQXZiPwOdvZvcTV7WPTiwg9W5LXTXIqDsn2u3WR836Q3AHznWIxoLWdzIKBpvyI M0PPiyW4szHTxIWxQUGsNsn9+4qkz+uWgV3R81sSh1oyiTwFFv5JRZwPj4NiayLrr+TC iDldrKAHOtnoO1fLp9tv0F2a1FUCtScgRZz7U= MIME-Version: 1.0 Received: by 10.227.141.84 with SMTP id l20mr1548811wbu.119.1284567697552; Wed, 15 Sep 2010 09:21:37 -0700 (PDT) Received: by 10.216.39.17 with HTTP; Wed, 15 Sep 2010 09:21:37 -0700 (PDT) In-Reply-To: <2D127F11DC79714E9B6A43AC9458147F796789A5@suex07-mbx-03.ad.syr.edu> References: <2D127F11DC79714E9B6A43AC9458147F796789A5@suex07-mbx-03.ad.syr.edu> Date: Wed, 15 Sep 2010 13:21:37 -0300 Message-ID: Subject: Re: Hierarchical Fields From: Iam Jabour To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Let's go to some example: 1 - Suppose I have some path tree, like: - /music/ | - rock/ | - doc1 =3D "artist1 music blues ..." | - doc2 =3D "artist2 music pop ..." | - blues/ | - doc3 =3D "artist3 ..." | - pop/ - doc5 =3D "artist1 ... " | - pop/ | - doc4 =3D "artist1 music rock ..." 2 - I created lucene documents like this example: field1 =3D ("path", doc1fullpath) field2 =3D ("value", doc1Value) and do the same to all documents. 3 - now I going to do the search: $ rock I get some sort like: [doc4, doc1, doc2] but I want: [doc1 | doc2] and the others [doc3 & doc4] like doc1, doc2, doc= 4 $ music AND blues I get: doc1, doc3 but I want: doc3, doc1 $ pop I want: doc4 then doc5 (because the path to doc4 is smaller then doc5) So to do this I need: 1 - change field boost 2 - set priority of path, and to do that: I create N field (one field to node in the path) or have some Lucene feature (but I don't know how) Thanks. ______________ Iam Jabour On Wed, Sep 15, 2010 at 12:52 PM, Steven A Rowe wrote: > Hi Iam, > > Can you say why you don't like the proposed solution? > > Also, the example of the scoring you're looking for doesn't appear to be = hierarchical in nature - can you give illustrate the relationship between t= he tokens in [token1, token2, token3]? =A0Also, why do you want token1 to c= ontribute more to the score than token2? > > Steve > >> -----Original Message----- >> From: Iam Jabour [mailto:iamjabour@gmail.com] >> Sent: Wednesday, September 15, 2010 9:20 AM >> To: lucene-group >> Subject: Hierarchical Fields >> >> =A0Hello, any one can help me with fields? >> >> I have the same problem posted in >> http://search.lucidimagination.com/search/out?u=3Dhttp://wiki.apache.org= /luc >> ene-java/HierarchicalFields, >> but I don't like the proposed solutions. I need a order field, like [ >> token1, token2, token3] >> If a query match with token1 the score is bigger then a match in >> token2, or same thing like that. >> >> ______________ >> Iam Jabour >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org