[ 
https://issues.apache.org/jira/browse/LUCENE-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766910#action_12766910
 ] 

Mark Miller commented on LUCENE-1955:
-------------------------------------

Mike fixed as:

{code}
 * @deprecated
 * see {...@link TopScoreDocCollector} and {...@link TopDocs} :<br>
 * <pre>
 *   TopScoreDocCollector collector = TopScoreDocCollector.create(hitsPerPage, 
false);
 *   searcher.search(new TermQuery(new Term("field", "iterator")), collector);
 *   ScoreDoc[] docHits = collector.topDocs().scoreDocs;
 *   for (int i = 0; i < docHits.length; i++) {
 *     int docId = docHits[i].doc;
 *     Document d = searcher.doc(docId);
 *   }
 * </pre>
{code}

But as we discussed in the past, I think we want to point people to 
Searcher.search instead?

> Fix Hits deprecation notice
> ---------------------------
>
>                 Key: LUCENE-1955
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1955
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Javadocs
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 2.9.1
>
>
> Just needs to be committed to 2.9 branch since hits is now removed.

-- 
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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to