Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 44821 invoked from network); 16 Feb 2006 19:43:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Feb 2006 19:43:45 -0000 Received: (qmail 29563 invoked by uid 500); 16 Feb 2006 19:43:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 29539 invoked by uid 500); 16 Feb 2006 19:43:35 -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 29528 invoked by uid 99); 16 Feb 2006 19:43:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 11:43:35 -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 [66.238.9.116] (HELO exchange.allegromedical.com) (66.238.9.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 11:43:35 -0800 Received: from mkhumri.allegro.med [10.50.1.40] by exchange.allegromedical.com with XWall v3.35 ; Thu, 16 Feb 2006 12:43:10 -0700 Message-ID: <43F4D575.7030804@allegromedical.com> Date: Thu, 16 Feb 2006 12:41:41 -0700 From: Mufaddal Khumri User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Strange Problem ... Luke returns results Lucene api does not. References: <43F4B549.3050409@allegromedical.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have a query that gets hits via luke. I can see the documents it finds. But when I run the same query via my java code it returns 0 hits. Note: 1. I am using standard analyzer while indexing and searching. 2. I have made sure that I am querying the same index via luke or through my java program. This is the call I make in my java code. BooleanQuery finalQuery = new BooleanQuery(); ..... ..... log.debug(finalQuery.toString()); hits = IndexSearcherManager.getIndexSearcher(indexPath).search(finalQuery); log.debug("Hits length = " + hits.length()); The output of the first log statement above is: +(+contentNew:Wireless +contentNew:fm +contentNew:car +contentNew:transmitter) +entity:category +(name:Wireless fm car transmitter^40.0 ((name:Wireless name:fm name:car name:transmitter)^10.0) contentNew:Wireless fm car transmitter^20.0 (contentNew:Wireless contentNew:fm contentNew:car contentNew:transmitter)) The output of the second log statement above is: Hits length = 0 I run the above query against the same index via Luke and I get search results that I expected. Any ideas as to why my java call does not return any hits? how i might be able to debug this? Thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org