lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <>
Subject [jira] Updated: (LUCENE-1290) Deprecate Hits
Date Tue, 20 May 2008 08:24:55 GMT


Michael Busch updated LUCENE-1290:

    Attachment: lucene-1290.patch

New version of the patch:
- added TopDocCollector example to deprecated-section in the javadocs of Hits
- added more comments to new demo code
- updated scoring.html and removed references to Hits
- got rid of tabs (patch only uses whitespaces now)

Hoss, could you try if this patch applies cleanly now and all tests pass, please?
After I committed eol-style=native to all files, changed the tabs to whitespaces 
and recreated the patch file patching and running the tests worked fine for me 
on linux.

Wow, I didn't imagine before that a patch that simply deprecates one class 
would have more than 5000 lines! :)

> Deprecate Hits
> --------------
>                 Key: LUCENE-1290
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: Search
>            Reporter: Michael Busch
>            Assignee: Michael Busch
>            Priority: Minor
>             Fix For: 2.4
>         Attachments: lucene-1290.patch, lucene-1290.patch
> The Hits class has several drawbacks as pointed out in LUCENE-954.
> The other search APIs that use TopDocCollector and TopDocs should be used instead.
> This patch:
> - deprecates org/apache/lucene/search/Hits, Hit, and HitIterator, as well as
>   the * ) methods which return a Hits Object.
> - removes all references to Hits from the core and uses TopDocs and ScoreDoc
>   instead
> - Changes the demo SearchFiles: adds the two modes 'paging search' and 'streaming search',
>   each of which demonstrating a different way of using the search APIs. The former
>   uses TopDocs and a TopDocCollector, the latter a custom HitCollector implementation.
> - Updates the online tutorial that descibes the demo.
> All tests pass.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message