Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 24059 invoked from network); 4 Feb 2006 11:40:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Feb 2006 11:40:03 -0000 Received: (qmail 9276 invoked by uid 500); 4 Feb 2006 11:40:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 8245 invoked by uid 500); 4 Feb 2006 11:39:57 -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 8229 invoked by uid 99); 4 Feb 2006 11:39:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2006 03:39:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2006 03:39:56 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id 7895D33D2CD; Sat, 4 Feb 2006 06:39:35 -0500 (EST) Received: from [172.16.1.101] (va-71-48-129-167.dhcp.sprint-hsd.net [71.48.129.167]) by ehatchersolutions.com (Postfix) with ESMTP id 6078533D2CC for ; Sat, 4 Feb 2006 06:39:34 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <200602040609.39130.lithiana@livejournal.com> References: <200602040609.39130.lithiana@livejournal.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Terms not being found in query Date: Sat, 4 Feb 2006 06:39:38 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Feb 4, 2006, at 1:09 AM, kate wrote: > i have an index with documents containing n-grams, in fields such as > "3gram", "4gram", etc. one 5-gram found in the text is "oswax". > using > Luke, i can see that a field with this value exists for a particular > document. however, searching for "5gram:oswax" produces no results > (either > using a query constructed by the query parser, or manually). the n- > gram > fields are indexed and stored, but not tokenised. > > i have tried setting maxFieldLength to Integer.MAX_VALUE with no > change. > > why do i receive no results? It looks like you've got all the troubleshooting bases covered, so I'm not sure what to suggest other than for you to post a simple test case that demonstrates the issue. If you see the term in Luke, and it is indexed, then it most definitely can be used to find the document using a TermQuery (I hope that is what you meant as "manually"). If you're using QueryParser "manually", then perhaps your analyzer is causing an issue? What is the .toString of your Query? Setting maxFieldLength isn't the issue, otherwise you wouldn't have seen the term in Luke. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org