Abstract Class Zend_Search_Lucene_Search_Query

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • abstract:
  • license: New BSD License

Located in /Search/Lucene/Search/Query.php (line 31)


	
			
Direct descendents
Class Description
 class Zend_Search_Lucene_Search_Query_MultiTerm
 class Zend_Search_Lucene_Search_Query_Wildcard
 class Zend_Search_Lucene_Search_Query_Insignificant The insignificant query returns empty result, but doesn't limit result set as a part of other queries
 class Zend_Search_Lucene_Search_Query_Boolean
 class Zend_Search_Lucene_Search_Query_Phrase A Query that matches documents containing a particular sequence of terms.
 class Zend_Search_Lucene_Search_Query_Fuzzy
Abstract class Zend_Search_Lucene_Search_Query_Preprocessing It's an internal abstract class intended to finalize ase a query processing after query parsing.
 class Zend_Search_Lucene_Search_Query_Term
 class Zend_Search_Lucene_Search_Query_Range
 class Zend_Search_Lucene_Search_Query_Empty
Variable Summary
Method Summary
 void execute (Zend_Search_Lucene_Interface $reader, [Zend_Search_Lucene_Index_DocsFilter|null $docsFilter = null])
 float getBoost ()
 array getQueryTerms ()
 string highlightMatches (string $inputHTML, [string $defaultEncoding = ''], [Zend_Search_Lucene_Search_Highlighter_Interface|null $highlighter = null])
 string htmlFragmentHighlightMatches (string $inputHtmlFragment, [string $encoding = 'UTF-8'], [Zend_Search_Lucene_Search_Highlighter_Interface|null $highlighter = null])
 array matchedDocs ()
 void reset ()
 float score (integer $docId, Zend_Search_Lucene_Interface $reader)
 void setBoost (float $boost)
 string __toString ()
Variables
Zend_Search_Lucene_Search_Weight $_weight = null (line 45)

Query weight

  • access: protected
Methods
createWeight (line 111)

Constructs an appropriate Weight implementation for this query.

  • abstract:
  • access: public

Redefined in descendants as:
execute (line 103)

Execute query in context of index reader It also initializes necessary internal structures

Query specific implementation

  • abstract:
  • access: public
void execute (Zend_Search_Lucene_Interface $reader, [Zend_Search_Lucene_Index_DocsFilter|null $docsFilter = null])

Redefined in descendants as:
getBoost (line 61)

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.

  • access: public
float getBoost ()
highlightMatches (line 186)

Highlight matches in $inputHTML

  • access: public
string highlightMatches (string $inputHTML, [string $defaultEncoding = ''], [Zend_Search_Lucene_Search_Highlighter_Interface|null $highlighter = null])
htmlFragmentHighlightMatches (line 212)

Highlight matches in $inputHtmlFragment and return it (without HTML header and body tag)

  • access: public
string htmlFragmentHighlightMatches (string $inputHtmlFragment, [string $encoding = 'UTF-8'], [Zend_Search_Lucene_Search_Highlighter_Interface|null $highlighter = null])
matchedDocs (line 92)

Get document ids likely matching the query

It's an array with document ids as keys (performance considerations)

  • abstract:
  • access: public
array matchedDocs ()

Redefined in descendants as:
optimize (line 145)

Optimize query in the context of specified index

  • abstract:
  • access: public

Redefined in descendants as:
reset (line 151)

Reset query, so it can be reused within other queries or

with other indeces

  • access: public
void reset ()
rewrite (line 137)

Re-write query into primitive queries in the context of specified index

  • abstract:
  • access: public

Redefined in descendants as:
score (line 83)

Score specified document

  • abstract:
  • access: public
float score (integer $docId, Zend_Search_Lucene_Interface $reader)

Redefined in descendants as:
setBoost (line 71)

Sets the boost for this query clause to $boost.

  • access: public
void setBoost (float $boost)
  • float $boost
_highlightMatches (line 176)

Query specific matches highlighting

  • abstract:
  • access: protected
void _highlightMatches (Zend_Search_Lucene_Search_Highlighter_Interface $highlighter)

Redefined in descendants as:
_initWeight (line 118)

Constructs an initializes a Weight for a _top-level_query_.

  • access: protected
void _initWeight (Zend_Search_Lucene_Interface $reader)

Documentation generated on Mon, 21 Jun 2010 15:40:30 -0400 by phpDocumentor 1.4.3