lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3514) deep paging with Sort
Date Mon, 14 May 2012 17:41:54 GMT


Michael McCandless updated LUCENE-3514:

    Attachment: LUCENE-3514.patch

Patch, also adding searchAfter for searches that have use a Sort...

I also removed IndexSearcher's "global" setDefaultFieldSortScoring
method and added expert search methods allowing you to pass those two
booleans on a per-search basis.

I added Sort to TestSearchAfter.

I had to add a new method to FieldComparator (compareDocToValue)...

I still need to fix javadocs and some nocommits but I think the patch
is otherwise close...

> deep paging with Sort
> ---------------------
>                 Key: LUCENE-3514
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.4, 4.0
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
>              Labels: gsoc2012, lucene-gsoc-12
>         Attachments: LUCENE-3514.patch
> We added IS.searchAfter(Query, Filter) but we don't support Sort yet with this API.
> I think it might be overkill at least at first to try to implement 12 collector variants
for this.
> I put the following idea on SOLR-1726:
> One idea would be to start with one or two implementations (maybe in/out of order) for
the sorting case, and dont overspecialize it yet.
> * for page 1, the ScoreDoc (FieldDoc really) will be null, so we just return the normal
impl anyway.
> * even if our searchAfter isnt huper-duper fast, the user can always make the tradeoff
like with page-by-score. they can always just pass null until like page 10 or something if
they compute that it only starts to 'help' then.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message