lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasenberger, Josef" <Josef.Hasenber...@zetcom.com>
Subject Opposite of SpanFirstQuery - Searching for documents by last term in a field
Date Tue, 11 Dec 2012 15:19:00 GMT
Hi,

I wonder if there is a way to use a SpanQuery to find documents with fields that end with
a certain term.
Kind of the oppoisite of SpanFirstQuery, i.e. "SpanLastQuery", if you want.

What I would like to do:
Find terms that are at the end of a field.

Example:
Assume the following field content: "the quick brown fox jumps over the lazy dog".
I would like to find all documents that have "dog" at the end of the field.

Any idea, how I can achieve this?

Thanks a lot and best regards,

Josef




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