Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54BB19AB3 for ; Wed, 1 Feb 2012 09:30:49 +0000 (UTC) Received: (qmail 59286 invoked by uid 500); 1 Feb 2012 09:30:46 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 58689 invoked by uid 500); 1 Feb 2012 09:30:37 -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 58679 invoked by uid 99); 1 Feb 2012 09:30:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 09:30:33 +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 (nike.apache.org: domain of ian.lea@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 09:30:25 +0000 Received: by eekd4 with SMTP id d4so257077eek.35 for ; Wed, 01 Feb 2012 01:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=9CC08+bvTy0qSvzwN5cDfsZ2mjZvzCPe8g8uMO+6HQg=; b=iN9otxUi9QBJW3bmlzMpKRylpDfIWwfAnEB4NO7ScKJ6UbpC0ttyavU/px5uXY44Fl MFZeGeHiYgLAJG+Jujw8NHM/GckGQeTES5BpmsBGqdwTrxxsU3DDt08L1DGHwckW9ftX TyzlqKp40g72Z/4A/gJJityGgxmD+yIQnrxts= Received: by 10.14.2.148 with SMTP id 20mr2267396eef.14.1328088605287; Wed, 01 Feb 2012 01:30:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.109.9 with HTTP; Wed, 1 Feb 2012 01:29:45 -0800 (PST) In-Reply-To: References: From: Ian Lea Date: Wed, 1 Feb 2012 09:29:45 +0000 Message-ID: Subject: Re: using character '%' in queries (Lucene v3.1.0) To: java-user@lucene.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org And have you used Luke to see exactly what is being indexed, as Erick sugge= sted? See http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.= 2BAC8_incorrect_hits.3F. for other things to check. -- Ian. On Wed, Feb 1, 2012 at 6:43 AM, Gal Mainzer wrote: > I tried to use escaping but it didn't work as well (and % is not in the > list). > my field analyzer is ngram (min=3D1 max=3D15) and i'm writing the query u= sing > QueryBuilder API rather than string so it's not being parsed. > > any ideas? > > Thanks, > Gal > > On Tue, Jan 31, 2012 at 9:36 PM, Erick Erickson = wrote: > >> Depending on your analyzer, this could well be stripped >> from the input. Perhaps try using Luke to examine the >> actual values in the index to see if it's there. >> >> And the escape character for Lucene is the backslash.. See: >> http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping >> Special Characters >> >> >> Best >> Erick >> >> On Tue, Jan 31, 2012 at 12:32 PM, Gal Mainzer wrote: >> > Hi, >> > >> > =A0I=92m using lucene on Hebrew MySql tables. I used ngram (1-15 gram = sizes) >> in >> > my name analyzer and the only thing that doesn=92t work for me is when= I >> try >> > to use =91%=92 in my parsing string (didn=92t find any match). >> > >> > I tried escaping it, using double character (=93%%=94) but nothing wor= ked. >> > >> > >> > >> > Thanks, >> > >> > Gal >> >> --------------------------------------------------------------------- >> 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