lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 김한규 <>
Subject Re: getting the offset of hits in a search
Date Wed, 09 Jan 2013 12:56:15 GMT
Try SpanTermQuery, getSpans() function. It returns Spans object which you
can iterate through to find position of every hits in every documents.

2013/1/9 Itai Peleg <>

> 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

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