lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Braun <>
Subject Re: How to do a "starts with" search
Date Mon, 20 Nov 2006 09:00:40 GMT
Hi Antony Bowesman schrieb:
> Hi,
> I'm trying to replace an existing search mechanism that supports a
> 'starts with' type of searching, for example a mail subject can contain
> the string
> A B C D
> the existing search allows the user to search starts with 'A B*' which
> would match, whereas starts with 'B C*' would not.  PhraseQuery with no
> slop would would not work as it would match.
> Is there any query I can enfore the starts with, so that 'B C*' does not
> match.

Please refer to  the answers to my question on this list:

Shortly spoken: SpanFirstQuery works like a charm :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message