lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Plural word search
Date Thu, 08 Mar 2007 18:42:00 GMT
as of 2.1, as I remember, you can use leading wildcards but ONLY
you set a flag (see setAllowLeadingWildcard in QueryParser). Be
aware of the TooManyClauses issue though (search the mail
archive and you'll find many discussions of this issue).

Erick

On 3/8/07, Tony Qian <tonyqian@hotmail.com> wrote:
>
>
> Sachin,
>
> Thanks for quick response. Is there any code example i can take look? I'm
> not familiar with the technique you mentioned. My question is how the
> analyzer knows "buss" is not a plural and bears is a plural.
>
> Lucene supports wildcard. However, we can not use wildcard at the
> beginning
> of search term such as *bear. is there a way to match *bear* (bear, bears,
> forbearance etc.) by search tern "bear"?
>
> thanks
>
> >From: "Kainth, Sachin" <Sachin.Kainth@atkinsglobal.com>
> >Reply-To: java-user@lucene.apache.org
> >To: <java-user@lucene.apache.org>
> >Subject: RE: Plural word search
> >Date: Thu, 8 Mar 2007 17:14:02 -0000
> >
> >Hi Tony,
> >
> >Lucene certainly does support it.  It just requires you to use a
> >tokeniser that performs stemming such as any analyzer that uses
> >PorterStemFilter.
> >
> >Sachin
> >
> >-----Original Message-----
> >From: Tony Qian [mailto:tonyqian@hotmail.com]
> >Sent: 08 March 2007 16:52
> >To: java-user@lucene.apache.org
> >Subject: Plural word search
> >
> >All,
> >
> >I'm evaluating Lucene as a full-text search engine for a project. I got
> >one of the requirements as following:
> >
> >4) Plural Literal Search
> >If you use the plural of a term such as bears the results will include
> >matches to the plural term bears as well as the singular term bear.
> >
> >it seems to me we need to build a dictionary to support it. Does Lucene
> >support it?
> >
> >appreciate your help.
> >
> >Tony
> >
> >_________________________________________________________________
> >Don't miss your chance to WIN 10 hours of private jet travel from
> >Microsoft(r) Office Live
> >http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
> >
> >This email and any attached files are confidential and copyright
> protected.
> >If you are not the addressee, any dissemination of this communication is
> >strictly prohibited. Unless otherwise expressly agreed in writing,
> nothing
> >stated in this communication shall be legally binding.
> >
> >The ultimate parent company of the Atkins Group is WS Atkins plc.
> >Registered in England No. 1885586.  Registered Office Woodcote Grove,
> >Ashley Road, Epsom, Surrey KT18 5BW.
> >
> >Consider the environment. Please don't print this e-mail unless you
> really
> >need to.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >For additional commands, e-mail: java-user-help@lucene.apache.org
> >
>
> _________________________________________________________________
> Find a local pizza place, movie theater, and moreā€¦.then map the best
> route!
> http://maps.live.com/?icid=hmtag1&FORM=MGAC01
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message