Thanks. The analyzer is actually my own code, so I don't mind rewriting it.
This was just a matter of not seeing all of the possibilities when doing the initial coding... No big deal, except that for one of our customers reindexing takes 5+ hours... Luckily they only use it during business hours. :-) thanks, rob http://www.robdecker.com/ http://www.planetside.com/ On Thu, 1 Aug 2002, Nader S. Henein wrote: > This is a long shot but if you want you search to yield exact results alone > on that specific field, you might wannna think about replacing the spaces > between words with underscores (make sure the analyzer doesn't split them > up) and then apply that same rule to the query string in the sense that > "Cathflo OrthoMed" will become "Cathflo_OrthoMed" and "OrthoMed" will stay > the same so when you search for "OrthoMed" you'll only get exact results, > this does not save you from re-indexing (unfortunately) but it does save you > from writing a whole new analyzer. > > Nader Henein > > -----Original Message----- > From: Robert A. Decker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 6:35 AM > To: Lucene Users List > Subject: Re: is this possible in a query? > > > I think this may be what I end up doing... Unfortunately this means > reindexing the documents... > > thanks, > rob > > http://www.robdecker.com/ > http://www.planetside.com/ > > On Wed, 31 Jul 2002 [EMAIL PROTECTED] wrote: > > > if you make the product name a type Field.Keyword, it will still be > > indexed and searchable, but will not be tokenized. > > --dmg > > > > > > ----- Original Message ----- > > From: "Robert A. Decker" <[EMAIL PROTECTED]> > > Date: Wednesday, July 31, 2002 5:07 pm > > Subject: is this possible in a query? > > > > > 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: <mailto:lucene-user- > > > [EMAIL PROTECTED]>For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
