Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 35474 invoked from network); 21 May 2009 21:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 21:42:10 -0000 Received: (qmail 49961 invoked by uid 500); 21 May 2009 21:42:22 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 49895 invoked by uid 500); 21 May 2009 21:42:22 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 49885 invoked by uid 99); 21 May 2009 21:42:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 21:42:22 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.64.1.240] (HELO elm.usg.tufts.edu) (130.64.1.240) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 21:42:13 +0000 Received: from dhcp-130-64-77-164.medford.tufts.edu ([130.64.77.164]:54073) by elm.usg.tufts.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1M7G1Q-0001Or-Ad for general@lucene.apache.org; Thu, 21 May 2009 17:41:52 -0400 Message-ID: <4A15CAA0.5070201@tufts.edu> Date: Thu, 21 May 2009 17:41:52 -0400 From: Mike Korcynski User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: general@lucene.apache.org Subject: Re: exact match on a stored / tokenized field. References: <4A0AD3BC.6030104@tufts.edu> <4A0B6FA6.3010607@tufts.edu> <4A0B806E.8030807@tufts.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've got one follow up question to my previous questions. What is the best way to just get a yes or no does this field match the query, regardless of whether its AND, OR or exact phrase I want it to evaluate the query and return a 0 or no if doesn't and 1 or true if it does. I've been using the Highlighter and calling getBestFragment and if it returns a fragment I assume it's found a match but ultimately it seems to match OR when I want AND, although it does work for exact phrase. I'm looking at the scores from the SpanScorer and the Highlighter is returning fragments for fields that have a score of 0 which seems odd but I'm guessing I'm misusing something. I just want a simple yes/no match on the query against the field. Thanks for the help. -Mike