Zend Framework
1.12
|
Public Member Functions | |
getBoost () | |
Gets the boost for this clause. | |
setBoost ($boost) | |
Sets the boost for this query clause to $boost. | |
score ($docId, Zend_Search_Lucene_Interface $reader) | |
Score specified document. | |
matchedDocs () | |
Get document ids likely matching the query. | |
execute (Zend_Search_Lucene_Interface $reader, $docsFilter=null) | |
Execute query in context of index reader It also initializes necessary internal structures. | |
createWeight (Zend_Search_Lucene_Interface $reader) | |
Constructs an appropriate Weight implementation for this query. | |
rewrite (Zend_Search_Lucene_Interface $index) | |
Re-write query into primitive queries in the context of specified index. | |
optimize (Zend_Search_Lucene_Interface $index) | |
Optimize query in the context of specified index. | |
reset () | |
Reset query, so it can be reused within other queries or with other indeces. | |
__toString () | |
Print a query. | |
getQueryTerms () | |
Return query terms. | |
highlightMatches ($inputHTML, $defaultEncoding= '', $highlighter=null) | |
Highlight matches in $inputHTML. | |
htmlFragmentHighlightMatches ($inputHtmlFragment, $encoding= 'UTF-8', $highlighter=null) | |
Highlight matches in $inputHtmlFragment and return it (without HTML header and body tag) | |
Protected Member Functions | |
_initWeight (Zend_Search_Lucene_Interface $reader) | |
Constructs an initializes a Weight for a _top-level_query_. | |
_highlightMatches (Zend_Search_Lucene_Search_Highlighter_Interface $highlighter) | |
Query specific matches highlighting. | |
Protected Attributes | |
$_weight = null | |
|
abstract |
Print a query.
|
abstractprotected |
Query specific matches highlighting.
Zend_Search_Lucene_Search_Highlighter_Interface | $highlighter | Highlighter object (also contains doc for highlighting) |
|
protected |
Constructs an initializes a Weight for a _top-level_query_.
Zend_Search_Lucene_Interface | $reader |
|
abstract |
Constructs an appropriate Weight implementation for this query.
Zend_Search_Lucene_Interface | $reader |
|
abstract |
Execute query in context of index reader It also initializes necessary internal structures.
Query specific implementation
Zend_Search_Lucene_Interface | $reader | |
Zend_Search_Lucene_Index_DocsFilter | null | $docsFilter |
getBoost | ( | ) |
Gets the boost for this clause.
Documents matching this clause will (in addition to the normal weightings) have their score multiplied by boost. The boost is 1.0 by default.
|
abstract |
Return query terms.
highlightMatches | ( | $inputHTML, | |
$defaultEncoding = '' , |
|||
$highlighter = null |
|||
) |
Highlight matches in $inputHTML.
string | $inputHTML | |
string | $defaultEncoding | HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag. |
Zend_Search_Lucene_Search_Highlighter_Interface | null | $highlighter |
htmlFragmentHighlightMatches | ( | $inputHtmlFragment, | |
$encoding = 'UTF-8' , |
|||
$highlighter = null |
|||
) |
Highlight matches in $inputHtmlFragment and return it (without HTML header and body tag)
string | $inputHtmlFragment | |
string | $encoding | Input HTML string encoding |
Zend_Search_Lucene_Search_Highlighter_Interface | null | $highlighter |
|
abstract |
Get document ids likely matching the query.
It's an array with document ids as keys (performance considerations)
|
abstract |
Optimize query in the context of specified index.
Zend_Search_Lucene_Interface | $index |
reset | ( | ) |
Reset query, so it can be reused within other queries or with other indeces.
|
abstract |
Re-write query into primitive queries in the context of specified index.
Zend_Search_Lucene_Interface | $index |
|
abstract |
setBoost | ( | $boost | ) |
Sets the boost for this query clause to $boost.
float | $boost |
|
protected |