Class LuceneSyntaxParserContext

Description
Class Constant Summary
Method Summary
LuceneSyntaxParserContext __construct (string $encoding, [string|null $defaultField = null])
void addEntry ( $entry)
void addLogicalOperator (integer $operator)
void boost (float $boostFactor)
integer getDefaultOperator ()
string|null getField ()
Zend_Search_Lucene_Search_Query getQuery ()
void processFuzzyProximityModifier ([ $parameter = null])
void setDefaultOperator (integer $operator)
void setNextEntryField (string $field)
void setNextEntrySign (integer $sign)
Zend_Search_Lucene_Search_Query _signStyleExpressionQuery ()
Methods
Constructor __construct (line 88)

Context object constructor

  • access: public
LuceneSyntaxParserContext __construct (string $encoding, [string|null $defaultField = null])
  • string $encoding
  • string|null $defaultField
addEntry (line 147)

Add entry to a query

  • access: public
void addEntry ( $entry)
  • Zend_Search_Lucene_Search_QueryEntry $entry
addLogicalOperator (line 217)

Process logical operator

  • access: public
void addLogicalOperator (integer $operator)
  • integer $operator
boost (line 191)

Set boost factor to the entry

  • access: public
void boost (float $boostFactor)
  • float $boostFactor
getDefaultOperator (line 392)

Get default boolean operator

  • access: public
integer getDefaultOperator ()
getField (line 100)

Get context default field

  • access: public
string|null getField ()
getQuery (line 369)

Generate query from current context

  • access: public
Zend_Search_Lucene_Search_Query getQuery ()
processFuzzyProximityModifier (line 165)

Process fuzzy search or proximity search modifier

  • throws: Zend_Search_Lucene_Search_QueryParserException
  • access: public
void processFuzzyProximityModifier ([ $parameter = null])
  • $parameter
setDefaultOperator (line 383)

Set default boolean operator

  • access: public
void setDefaultOperator (integer $operator)
  • integer $operator
setNextEntryField (line 110)

Set field for next entry

  • access: public
void setNextEntryField (string $field)
  • string $field
setNextEntrySign (line 122)

Set sign for next entry

  • throws: Zend_Search_Lucene_Exception
  • access: public
void setNextEntrySign (integer $sign)
  • integer $sign
_signStyleExpressionQuery (line 236)

Generate 'signs style' query from the context '+term1 term2 -term3 +(<subquery1>) ...'

  • access: public
Zend_Search_Lucene_Search_Query _signStyleExpressionQuery ()
Class Constants
GM_BOOLEAN = 1 (line 45)
GM_SIGNS = 0 (line 44)

Entries grouping mode

Documentation generated on Sun, 06 Mar 2011 00:24:27 -0500 by phpDocumentor 1.4.3