net.semanticmetadata.lire
Interface ImageSearchHits

All Known Implementing Classes:
SimpleImageSearchHits

public interface ImageSearchHits

This class simulates the original Lucene Hits object. Please note the only a certain number of results are returned.
This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net
Date: 02.02.2006
Time: 23:45:20

Author:
Mathias Lux, mathias@juggle.at

Method Summary
 org.apache.lucene.document.Document doc(int position)
          Returns the document at given position
 int length()
          Returns the size of the result list.
 float score(int position)
          Returns the score of the document at given position.
 

Method Detail

length

int length()
Returns the size of the result list.

Returns:
the size of the result list.

score

float score(int position)
Returns the score of the document at given position. Please note that the score in this case is a distance, which means a score of 0 denotes the best possible hit. The result list starts with position 0 as everything in computer science does.

Parameters:
position - defines the position
Returns:
the score of the document at given position. The lower the better (its a distance measure).

doc

org.apache.lucene.document.Document doc(int position)
Returns the document at given position

Parameters:
position - defines the position.
Returns:
the document at given position.