RE: Edit distance and wildcard searching with PhraseQuery

2009-11-11 Thread Jeff Plater
@lucene.apache.org Subject: Re: Edit distance and wildcard searching with PhraseQuery I'd at use something that lowercases the input rather than just WhitespaceAnalyzer. Remember to use it at index time and query time. Between your queries and typing things in e-mails, case is often a gotcha

Re: Edit distance and wildcard searching with PhraseQuery

2009-11-11 Thread Erick Erickson
ceAnalyzer)?. Have you used it with wildcard > before? > > -Jeff > > -Original Message- > From: AHMET ARSLAN [mailto:iori...@yahoo.com] > Sent: Wednesday, November 11, 2009 5:55 PM > To: java-user@lucene.apache.org > Subject: Re: Edit distance

RE: Edit distance and wildcard searching with PhraseQuery

2009-11-11 Thread Jeff Plater
e- From: AHMET ARSLAN [mailto:iori...@yahoo.com] Sent: Wednesday, November 11, 2009 5:55 PM To: java-user@lucene.apache.org Subject: Re: Edit distance and wildcard searching with PhraseQuery What you are looking for is ComplexPhraseQueryParser [1] and implemented in Lucene 2.9.0. It uses SpanQuery f

Re: Edit distance and wildcard searching with PhraseQuery

2009-11-11 Thread AHMET ARSLAN
What you are looking for is ComplexPhraseQueryParser [1] and implemented in Lucene 2.9.0. It uses SpanQuery family. It supports "Phil* PA"~10 as well as "Philadelphid~0.75 PA". Ranges, OR, fuzzy and wildcard inside proximity (phrases). [1] http://lucene.apache.org/java/2_9_0/api/contrib-misc/o

Edit distance and wildcard searching with PhraseQuery

2009-11-11 Thread Jeff Plater
Hi, I am trying to figure out a way that I can query a Lucene index for a phrase but have some fuzziness (edit distance and/or wildcard) applied to the individual terms. An example should help explain what I am trying to do: Index contains: Philadelphia PA Search is done on: Philadel