Home | Trees | Indices | Help |
|
---|
|
Responsible for searching an index and returning results.
_Searcher threads are created for each search that is requested. After the search is completed, the thread dies.
To search, a _Searcher class is instantiated and then called with the query and the ISO language code for the index to search. It returns the results as a list of object id strings unless results_formatter was provided. If it was, then the list of id strings are passed to results_formatter to process and it's results are returned.
The thread is garbage collected when it goes out of scope.
The catch to all this is that a CherryPy thread cannot directly instantiate a _Searcher thread because of PyLucene restrictions. So to get around that, see the _SearcherFactory class.
See Also: turbolucene.start for details about results_formatter.
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
Public API | |||
---|---|---|---|
|
|||
iterable |
|
||
Threaded methods | |||
|
|
|||
Inherited from |
|
Note: The thread is started as soon as the class is instantiated. |
Send If
See Also:
|
Search the language index for the query and send back the results. The results is an iterable of id field strings that match the query. This method uses the turbolucene.search_fields configuration setting for the default fields to search if none are specified in the query itself, and turbolucene.default_operator for the default operator to use when joining terms.
Notes:
See Also:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 21:58:29 2007 | http://epydoc.sourceforge.net |