Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 43998 invoked from network); 1 Aug 2002 00:35:27 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Aug 2002 00:35:27 -0000 Received: (qmail 25387 invoked by uid 97); 1 Aug 2002 00:35:51 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 25366 invoked by uid 97); 1 Aug 2002 00:35:50 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 25354 invoked by uid 98); 1 Aug 2002 00:35:50 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Errors-To: User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Wed, 31 Jul 2002 17:35:27 -0700 Subject: Re: is this possible in a query? From: Peter Carlson To: Lucene Users List Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This depends on your analyzer. Currently it splits on words. How do you want it to split? Is there other text around this? I guess you could write your own analyzer that if it finds a special phrase it would add it as a phrase. If you did it this way, you would have to use similar methodology to parse the query string itself. Another option I can think of if you are just indexing text is to have something that filters out your product names that looks for such things. So if only OrthoMed is in the query string and not Cathflo then add the query clause NOT Cathflo. This seems like it might get very complicated though. I hope someone else comes up with more elegant solutions. --Peter On 7/31/02 5:07 PM, "Robert A. Decker" wrote: > I have a Text Field named product. Two of the products are: > Cathflo OrthoMed > OrthoMed > > When I search for "Cathflo OrthoMed", I correctly only get items that have > the product "Cathflo OrthoMed". However, when I search for "OrthoMed", not > only do I get all "OrthoMed" products, but I also get all "Cathflo > OrthoMed" products. > > Is there a way, when searching on a Field.Text type, to limit the above > "OrthoMed" search to only "OrthoMed", and to exclude "Cathflo > OrthoMed"? The solution has to be generic enough to work with any > combination of product names. > > thanks, > rob > > http://www.robdecker.com/ > http://www.planetside.com/ > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: