public class SimpleImageSearchHits extends java.lang.Object implements ImageSearchHits
| 构造器和说明 |
|---|
SimpleImageSearchHits(java.util.Collection<SimpleResult> results,
double maxDistance) |
SimpleImageSearchHits(java.util.Collection<SimpleResult> results,
double maxDistance,
boolean useSimilarityScore)
Basic constructor to create results.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
documentID(int position)
Returns the id of the document within the respective Lucene IndexReader
|
int |
length()
Returns the size of the result list.
|
double |
score(int position)
Returns the score of the document at given position.
|
public SimpleImageSearchHits(java.util.Collection<SimpleResult> results, double maxDistance)
public SimpleImageSearchHits(java.util.Collection<SimpleResult> results, double maxDistance, boolean useSimilarityScore)
results - maxDistance - useSimilarityScore - set to true is you want similarity scores, otherwise distances will be used. Note that using distance is faster in terms of runtime.public int length()
length 在接口中 ImageSearchHitspublic double score(int position)
score 在接口中 ImageSearchHitsposition - defines the positionpublic int documentID(int position)
documentID 在接口中 ImageSearchHitsposition - position in the result list