Range of a match

10 views
Skip to first unread message

Michael McDermott

unread,
Apr 3, 2010, 10:07:37 PM4/3/10
to montezuma-dev
Is there any way to determine the range of a match when searching
through an index? So that, for example, I could extract the matching
substring from the document field?

Yoni Rabkin

unread,
Apr 4, 2010, 9:16:31 AM4/4/10
to montezuma-dev
On Apr 4, 5:07 am, Michael McDermott <mcdermott.micha...@gmail.com>
wrote:

> Is there any way to determine the range of a match when searching
> through an index? So that, for example, I could extract the matching
> substring from the document field?

I guess you mean this? http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#Range%20Searches

/src/search/range-query.lisp does seem to define range queries. But
I've never used them so I don't know if they work or to what extent.

I don't know what it has to do with extracting a substring from a
document field though.

Reply all
Reply to author
Forward
0 new messages