\Zend_Search_Lucene_Search_Query_Wildcard
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Search_Query_Wildcard
extends Zend_Search_Lucene_Search_Query
{
- // members
- private Zend_Search_Lucene_Index_Term $_pattern;
- private $_matches = NULL;
- private static integer $_minPrefixLength = 3;
- // Inherited members from Zend_Search_Lucene_Search_Query
- protected Zend_Search_Lucene_Search_Weight $_weight;
- // methods
- public void __construct()
- public static integer getMinPrefixLength()
- public static void setMinPrefixLength()
- private static string _getPrefix()
- public Zend_Search_Lucene_Search_Query rewrite()
- public Zend_Search_Lucene_Search_Query optimize()
- public Zend_Search_Lucene_Index_Term getPattern()
- public array getQueryTerms()
- public Zend_Search_Lucene_Search_Weight createWeight()
- public void execute()
- public array matchedDocs()
- public float score()
- protected void _highlightMatches()
- public string __toString()
- // Inherited methods from Zend_Search_Lucene_Search_Query
- public float getBoost()
- public void setBoost()
- public abstract float score()
- public abstract array matchedDocs()
- public abstract void execute()
- public abstract Zend_Search_Lucene_Search_Weight createWeight()
- protected void _initWeight()
- public abstract Zend_Search_Lucene_Search_Query rewrite()
- public abstract Zend_Search_Lucene_Search_Query optimize()
- public void reset()
- public abstract string __toString()
- public abstract array getQueryTerms()
- protected abstract void _highlightMatches()
- public string highlightMatches()
- public string htmlFragmentHighlightMatches()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
148 | check for PCRE unicode support may be performed through Zend_Environment in some future |
Members
private
- $_matches
—
array
Matched terms. - $_minPrefixLength
—
integer
Minimum term prefix length (number of minimum non-wildcard characters) - $_pattern
—
Zend_Search_Lucene_Index_Term
Search pattern.
protected
- $_weight
—
Zend_Search_Lucene_Search_Weight
Query weight
Methods
private
- _getPrefix() — Get terms prefix
protected
- _highlightMatches() — Query specific matches highlighting
public
- __construct() — Zend_Search_Lucene_Search_Query_Wildcard constructor.
- __toString() — Print a query
- createWeight() — Constructs an appropriate Weight implementation for this query.
- execute() — Execute query in context of index reader It also initializes necessary internal structures
- getMinPrefixLength() — Get minimum prefix length
- getPattern() — Returns query pattern
- getQueryTerms() — Return query terms
- matchedDocs() — Get document ids likely matching the query
- optimize() — Optimize query in the context of specified index
- rewrite() — Re-write query into primitive queries in the context of specified index
- score() — Score specified document
- setMinPrefixLength() — Set minimum prefix length
Inherited from Zend_Search_Lucene_Search_Query
protected
- _highlightMatches() — Query specific matches highlighting
- _initWeight() — Constructs an initializes a Weight for a _top-level_query_.
public
- __toString() — Print a query
- createWeight() — Constructs an appropriate Weight implementation for this query.
- execute() — Execute query in context of index reader It also initializes necessary internal structures
- 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.
- getQueryTerms() — Return query terms
- highlightMatches() — Highlight matches in $inputHTML
- htmlFragmentHighlightMatches() — Highlight matches in $inputHtmlFragment and return it (without HTML header and body tag)
- matchedDocs() — Get document ids likely matching the query
- optimize() — Optimize query in the context of specified index
- reset() — Reset query, so it can be reused within other queries or with other indeces
- rewrite() — Re-write query into primitive queries in the context of specified index
- score() — Score specified document
- setBoost() — Sets the boost for this query clause to $boost.