Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27744 invoked from network); 17 Jun 2008 05:11:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 05:11:36 -0000 Received: (qmail 72316 invoked by uid 500); 17 Jun 2008 05:11:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 72279 invoked by uid 500); 17 Jun 2008 05:11:31 -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 72268 invoked by uid 99); 17 Jun 2008 05:11:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 22:11:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 05:10:42 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 48F5171C4AE; Mon, 16 Jun 2008 22:11:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 41A4171C47E for ; Mon, 16 Jun 2008 22:11:00 -0700 (PDT) Date: Mon, 16 Jun 2008 22:11:00 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: lucene wildcard query with stop character In-Reply-To: <4851828D.7030501@informatics.jax.org> Message-ID: References: <1bcb7c7f0806121045i77f7f7b0oe689975d1a10c585@mail.gmail.com> <48516140.6030409@informatics.jax.org> <1bcb7c7f0806121246w33b0a44gb6c3ca8d7e7e6c7c@mail.gmail.com> <4851828D.7030501@informatics.jax.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Hrm.. can we see a more specific example of the type of data you are trying to : query against here? As i understand the question, this is a fairly classic hierarchical organization of documents. Documents Foo>Bar>Baz and Foo>Bar>Bax are both children of Document Foo>Bar ... Foo>Barber is their aunt (a sibling document of Foo>Bar. searching for doc:Foo>Bar>* will find all of the decendents of document Foo>Bar ... but you want to just find the direct children (not hte grand children) the easiest way to tackled something like this is with multiple fields... doc_path: Foo>Bar>Baz parent: Foo>Bar ..then you can query for parent:"Foo>Bar" to find all of the direct children, or doc:Foo>Bar>* to find all decendents. i typically use an "ancestors" field, where every ancestor in the "family tree" is enumerated as a seperate field value, so that i'm not dependent on prefix queries to do "decendents" queries like that.... doc_path: Foo>Bar>Baz parent: Foo>Bar ancestor: Foo>Bar ancestor: Foo -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org