[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/search/Zend/Search/Lucene/Search/Query/ -> Wildcard.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 297 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Search_Lucene_Search_Query_Wildcard:: (12 methods):
  __construct()
  _getPrefix()
  rewrite()
  optimize()
  getPattern()
  getQueryTerms()
  createWeight()
  execute()
  matchedDocs()
  score()
  highlightMatchesDOM()
  __toString()


Class: Zend_Search_Lucene_Search_Query_Wildcard  - X-Ref


__construct(Zend_Search_Lucene_Index_Term $pattern)   X-Ref
Zend_Search_Lucene_Search_Query_Wildcard constructor.

param: Zend_Search_Lucene_Index_Term $pattern

_getPrefix($word)   X-Ref
Get terms prefix

param: string $word
return: string

rewrite(Zend_Search_Lucene_Interface $index)   X-Ref
Re-write query into primitive queries in the context of specified index

param: Zend_Search_Lucene_Interface $index
return: Zend_Search_Lucene_Search_Query

optimize(Zend_Search_Lucene_Interface $index)   X-Ref
Optimize query in the context of specified index

param: Zend_Search_Lucene_Interface $index
return: Zend_Search_Lucene_Search_Query

getPattern()   X-Ref
Returns query pattern

return: Zend_Search_Lucene_Index_Term

getQueryTerms()   X-Ref
Return query terms

return: array

createWeight(Zend_Search_Lucene_Interface $reader)   X-Ref
Constructs an appropriate Weight implementation for this query.

param: Zend_Search_Lucene_Interface $reader
return: Zend_Search_Lucene_Search_Weight

execute(Zend_Search_Lucene_Interface $reader)   X-Ref
Execute query in context of index reader
It also initializes necessary internal structures

param: Zend_Search_Lucene_Interface $reader

matchedDocs()   X-Ref
Get document ids likely matching the query

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

return: array

score($docId, Zend_Search_Lucene_Interface $reader)   X-Ref
Score specified document

param: integer $docId
param: Zend_Search_Lucene_Interface $reader
return: float

highlightMatchesDOM(Zend_Search_Lucene_Document_Html $doc, &$colorIndex)   X-Ref
Highlight query terms

param: integer &$colorIndex
param: Zend_Search_Lucene_Document_Html $doc

__toString()   X-Ref
Print a query

return: string



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7