Package grassyknoll :: Package backend :: Package lucene :: Module Smarts :: Class SmartHit
[hide private]

Class SmartHit

source code


a search result

Attributes are expensive to calculate and ofent unneeded if skipping hits, so we do it lazily.

Instance Methods [hide private]
 
__init__(self, hit)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
score(self)
relevance score
source code
 
fields(self, fields=None)
map of field name=>value
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, hit)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

score(self)

source code 
relevance score
Decorators:
  • @property