lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itai Peleg <pelegita...@gmail.com>
Subject Re: getting the offset of hits in a search
Date Wed, 09 Jan 2013 12:57:55 GMT
Great! I'll look into that.

Thanks!


2013/1/9 김한규 <gksrb92@gmail.com>

> Try SpanTermQuery, getSpans() function. It returns Spans object which you
> can iterate through to find position of every hits in every documents.
>
> http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/spans/SpanTermQuery.html
>
> 2013/1/9 Itai Peleg <pelegitai17@gmail.com>
>
> > Hi,
> >
> > I'n new to Lucene, and I'm having some problems with the search. Ive been
> > debugging Lucene in order to find out how I can get for each document
> what
> > are its "hits" (the terms that it has that were in the query) and their
> > offset. Can anyone give me some pointers?
> >
> > Thanks in advance,
> > Itai
> >
>

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