lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <>
Subject Re: "Starts with" query?
Date Thu, 05 Jan 2006 22:53:34 GMT
> 1) also index the field untokenized and use a straight prefix query
See my reply to Chris, not sure I can afford the index size increment.

> 2) index a magic token at the start of the title and include that in a
> phrase query:
>    "_START_ the quick"

ooooh, that's clever.

> 3) use a SpanFirst query (but you have to make the Java Query  
> object yourself)

Will SpanFirst find the phrase at the start, but where the term might  
not be compelete, ie. search would be "The qu*"?

the _START_ trick might do it, and efficient in terms of index size etc.


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

View raw message