lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: use of wildcards in a phrase
Date Fri, 07 Jul 2006 05:16:15 GMT

: I would like to know how to search for phrases that have wild cards in
: them. For eg. I want to search for the phrase "Reduces Project Sucess
: Risk". I want to add wildcard * to each of these terms, so that I can
: search of phrases such as "Reduces Project Sucess Risks"  Is this

more then likely what you want is not to use wildcards in phrase queries.
what you most likely want is called stemming ... if you google for that
word you'll find a lot of good info and if you look in Lucene In Action
you'll find examples of stemming in lucene.  Stemming is what makes all of
these phrases equivilent...

   Reduces Project Sucess Risks
   Reduce  Project Sucess Risk
   Reduces Product Sucess Risk
   Reduce  Product Sucess Risks

You can in fact make a Phrase query containing wildcards (MultiPhraseQuery
is the class to look at) but that would make your example match things
like "Reduces Projectionistic Sucession Riskerinorunee" .. probably not
what you want.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message