There is a SpanWildcardQuery in the contib section of the java lucene. It
can be imported to .Net pretty easily.

As mentioned, it's not very efficient - it requires the query to be
rewritten before execution - turning it to a simple OR query with all the
valid terms from the index before the query is executed.

Eran.

On Thu, Jan 7, 2010 at 8:25 PM, Michael Garski <[email protected]>wrote:

> SpanNearQuery is what I use for similar cases, however I don't believe it
> supports wildcard/prefix queries.
>
> The syntax you had in your example appear to be for proximity searches
> using QueryParser to parse the query.  One thing about your example is that
> you had:
>
> "Zwischenver* Anspruch*"~0.5
>
> The 'slop' value of 0.5 appears problematic, it should be an integer value
> of the number of spaces between the terms.  I'm not sure if such a query
> supports wildcard searches either.
>
> I'm not a big fan of wildcard queries due to their potential performance
> impact if there are a large number of terms that match the wildcard, opting
> for creation of custom analyzers that tokenize or inject synonyms.
>
> Michael
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Ludwig Brusa
> Sent: Thursday, January 07, 2010 10:10 AM
> To: [email protected]
> Subject: Re: Distance search with Wildcard
>
> Thanks for the quick reply. I am looking for documents, the terms
> (with wildcards), and contain a certain distance between the terms.
>
> Kind regards, Ludwig
>
>
>
> 2010/1/7 Michael Garski <[email protected]>:
> > Ludwig,
> >
> > What do you mean by 'distance search'?  Are you looking for geospatial
> > or documents that contain the terms within a certain distance of each
> > other?
> >
> > Michael
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On Behalf
> > Of Ludwig Brusa
> > Sent: Thursday, January 07, 2010 9:40 AM
> > To: [email protected]
> > Subject: Distance search with Wildcard
> >
> > Hello
> >
> > I'm new here and a beginner on Lucene.net. I try to examine whether
> > Lucene.net suitable for my project.
> > My question: Can connecting Distance search with Wildcard so like here:
> >
> > "Zwischenver* Anspruch*"~0.5
> >
> > I hope they understand my English. Thank you very much for your help.
> >
> > Kind regards, Ludwig
> >
> >
> >
>
>
>

Reply via email to