helma.Search.HitCollection
Object
|
+--helma.Search.HitCollection
This class provides Helma-like methods for accessing
a collection of search hits.
Defined in Search.js
|
Constructor Summary |
helma.Search.HitCollection(<org.lucene.search.Hits> hits)
Creates a new instance of helma.Search.HitCollection
|
|
Methods Summary |
helma.Search.Document
|
get(<Number> idx)
Silently converts the hit at the given index position into
an instance of helma.Search.Document.
|
Number
|
length()
Returns the number of hits in this collection.
|
Number
|
size()
Returns the number of hits in this collection.
|
helma.Search.HitCollection
helma.Search.HitCollection(<org.lucene.search.Hits> hits)
Creates a new instance of helma.Search.HitCollection
Parameters:
hits - The hit collection returned by lucene.
get
helma.Search.Document get(<Number> idx)
Silently converts the hit at the given index position into
an instance of helma.Search.Document.
Parameters:
idx - The index position of the hit
Returns:
The document object at the given index position
length
Number length()
Returns the number of hits in this collection.
This method is deprecated, use size() instead.
size
Number size()
Returns the number of hits in this collection.
Documentation generated by
JSDoc on Thu Apr 5 01:59:00 2007