There is a ticket for this request:
https://issues.apache.org/jira/browse/SOLR-1980
--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
On 5. okt. 2010, at 08.39, Maddy.Jsh wrote:
>
> Hi,
>
> I have 2 documents with following values.
> Doc1
> Subject: Weekly transport
>
I think this is possible, at the Lucene level.
You want a mix of PrefixQuery and SpanFirstQuery (hmm we don't have a
SpanLastQuery...).
I believe you can do this by creating a PrefixQuery, and then
customizing the rewrite method to create a BQ (SHOULD clauses) of
SpanFirstQuery, instead of TermQu