lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6388) Optimize SpanNearQuery
Date Thu, 02 Apr 2015 15:28:53 GMT


Paul Elschot commented on LUCENE-6388:

Oops, I thought by now ArrayList would be JIT-ed away, thanks.
Also the UOE's in the NearSpansOrdered payload methods have gone in this patch, I had put
these in to check the tests.

> Optimize SpanNearQuery
> ----------------------
>                 Key: LUCENE-6388
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Robert Muir
>         Attachments: LUCENE-6388.patch
> After the big spans overhaul in LUCENE-6308, we can speed up SpanNearQuery a little more:
> * SpanNearQuery defaults to collectPayloads=true, but this requires a slower implementation,
for an uncommon case. Use the faster no-payloads impl if the field doesn't actually have any
> * Use a simple array of Spans rather than List in NearSpans classes. This is iterated
over often in the logic.

This message was sent by Atlassian JIRA

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

View raw message