Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 81981 invoked from network); 9 Apr 2008 13:28:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 13:28:43 -0000 Received: (qmail 56993 invoked by uid 500); 9 Apr 2008 13:28:37 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 56936 invoked by uid 500); 9 Apr 2008 13:28:37 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 56925 invoked by uid 99); 9 Apr 2008 13:28:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 06:28:37 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.162.48.15] (HELO soufre.accelance.net) (213.162.48.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 13:27:54 +0000 Received: from [192.168.3.105] (LSt-Amand-152-32-31-90.w82-127.abo.wanadoo.fr [82.127.74.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by soufre.accelance.net (Postfix) with ESMTP id 5B62C45206 for ; Wed, 9 Apr 2008 15:28:04 +0200 (CEST) Message-ID: <47FCC462.8030302@garambrogne.net> Date: Wed, 09 Apr 2008 15:28:02 +0200 From: Mathieu Lecarme User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: Storing phrases in index References: <16585658.post@talk.nabble.com> In-Reply-To: <16585658.post@talk.nabble.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org palexv a �crit : > Hello all. > I have a question to advanced in lucene. > I have a set of phrases which I need to store in index. > Is there is a way of storing phrases as terms in index? > > How is the best way of writing such index? Should this field be tokenized? > not tokenized > What is the best way of searching phrases by mask in such index? Should I > use BooleanQuery, WildCartQuery or SpanQuery? il you search complete phrase, just use Term, if you search part of phrase, use ShingleFilter. > > How is the best way to escape from maxClauses exception when searching like > a*? > indexing indexed term. M. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org