You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by ayyanar <ay...@aspiresys.com> on 2008/12/17 06:22:06 UTC

Newbie Question on SpanQuery

Hi, Iam new to lucene. It seams SpanTermQuery is similar to FuzzyQuery. Can
anyone explain the use of SpanTermQuery with example
-- 
View this message in context: http://www.nabble.com/Newbie-Question-on-SpanQuery-tp21047421p21047421.html
Sent from the Lucene - General mailing list archive at Nabble.com.


Re: Newbie Question on SpanQuery

Posted by Grant Ingersoll <gs...@apache.org>.
On Dec 17, 2008, at 12:22 AM, ayyanar wrote:

>
> Hi, Iam new to lucene. It seams SpanTermQuery is similar to  
> FuzzyQuery. Can
> anyone explain the use of SpanTermQuery with example

It's more like TermQuery, except it can return where in the document  
the match took place, as opposed to TermQuery which just tells you the  
document matched.  This applies to all the Span Queries: they allow  
you to know where exactly in the document things matched.

>
> -- 
> View this message in context: http://www.nabble.com/Newbie-Question-on-SpanQuery-tp21047421p21047421.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>

--------------------------
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ