lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: position-anchored queries
Date Thu, 21 Mar 2019 12:58:36 GMT
Hello, Michael.

I'm aware of <SpanFirst> in XML Query Parser.

On Thu, Mar 21, 2019 at 3:29 PM Michael Sokolov <msokolov@gmail.com> wrote:

> Hi, if I want to write a begins-with, ends-with, or exact-match style
> query; like a phrase query, but anchored to the beginning of a field, the
> end, or both, is there a generally-accepted best way? I can see how to
> maybe create a positional query that specifies the exact position for each
> term (at least in theory -- I'm not sure if there is a Query that does
> this?) but do we keep track of max(position, field, doc) so I can know that
> there are not any subsequent terms in the field?
>
> -Mike
>


-- 
Sincerely yours
Mikhail Khludnev

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