[ Index ]

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

title

Body

[close]

/search/Zend/Search/Lucene/Search/Query/ -> Insignificant.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: 140 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Search_Lucene_Search_Query_Insignificant:: (9 methods):
  rewrite()
  optimize()
  createWeight()
  execute()
  matchedDocs()
  score()
  getQueryTerms()
  highlightMatchesDOM()
  __toString()


Class: Zend_Search_Lucene_Search_Query_Insignificant  - X-Ref

The insignificant query returns empty result, but doesn't limit result set as a part of other queries

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

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

getQueryTerms()   X-Ref
Return query terms

return: array

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