Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 9989 invoked from network); 4 Apr 2006 18:33:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 18:33:22 -0000 Received: (qmail 15251 invoked by uid 500); 4 Apr 2006 18:33:16 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 15229 invoked by uid 500); 4 Apr 2006 18:33:16 -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 15218 invoked by uid 99); 4 Apr 2006 18:33:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 11:33:16 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.22.58.18] (HELO mail.dicarta.com) (12.22.58.18) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 11:33:14 -0700 Received: from corpx.corp.dicarta.com (corpx.dicarta.com [10.1.8.35]) by mail.dicarta.com with ESMTP id k34IWlB03450 for ; Tue, 4 Apr 2006 11:32:48 -0700 (PDT) From: jwang@dicarta.com X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: problem Indexing path of files Date: Tue, 4 Apr 2006 11:32:52 -0700 Message-ID: <9778DA4F3D53D04B9AE80AC64AC073A305745B42@corpx.corp.dicarta.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem Indexing path of files Thread-Index: AcZYEaLkdjRFFtu9RZ2URCRWAh5tfAAAP+JA To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Use the PerFieldAnalyzerWrapper and set your path (and probably name) to KeywordAnalyzer. Reserve whatever analyzer you have for the actual contents/meta data of the file. Do a search on PerFieldAnalyzerWrapper in this ML for examples. Jeff Wang diCarta, Inc. -----Original Message----- From: pepone pepone [mailto:pepone.onrez@gmail.com]=20 Sent: Tuesday, April 04, 2006 11:00 AM To: java-user@lucene.apache.org Subject: problem Indexing path of files=20 I trying to index the paths of a tree like structure in lucene My docs have info like this Node1 name:a path:/a Node2 name:b path:/a/b Node3 name:c path:/a/b/c when search for path:/a the 3 Nodes match I indexing this info using the StandardAnalyzer any ideas to solve this trouble? -- play tetris http://pepone.on-rez.com/tetris --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org