You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2009/10/07 17:00:31 UTC
[jira] Commented: (LUCENE-1955) Fix Hits deprecation notice
[ https://issues.apache.org/jira/browse/LUCENE-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763086#action_12763086 ]
Mark Miller commented on LUCENE-1955:
-------------------------------------
Here is what I have so far (taken from an email i sent to the dev list):
{code}
* @deprecated
* see {@link Searcher#search(Query, int)}, {@link Searcher#search(Query, Filter, int)}
* and {@link Searcher#search(Query, Filter, int, Sort)}:<br>
* <pre>
* TopDocs topDocs = searcher.search(query, numHits);
* ScoreDoc[] hits = topDocs.scoreDocs;
* for (int i = 0; i < hits.length; i++) {
* int docId = hits[i].doc;
* Document d = searcher.doc(docId);
* // do something with current hit
* ...
* </pre>
*/
{code}
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org