The sample code uses a ScoreDoc array to hold the hits. ScoreDoc[] hits = collector.topDocs().scoreDocs;
But the JavaDoc says "Expert: Returned by low-level search implementations." Why would the tutorial sample code use an "expert" api?
The sample code uses a ScoreDoc array to hold the hits. ScoreDoc[] hits = collector.topDocs().scoreDocs;
But the JavaDoc says "Expert: Returned by low-level search implementations." Why would the tutorial sample code use an "expert" api?