Child classes:
Inherited Variables
Inherited Methods
Class: SearchEngine
- constructor SearchEngine ( )
- Base constructor.
- disableLogging ( )
- This method disables logging.
- enableLogging ( )
- This method enables logging.
- &factory ( $engineType )
- Attempts to return a valid implementation of the SearchEngine base class based on the $engineType parameter.
- &getResultBuilder ( )
- This method returns the ResultBuilder used by this instance.
- &search ( $queryParams )
- Computes the given query, and return the SearchResult array
- setLogger ( &$logger )
- This method sets the optionnal logger for this instance.
- setResultBuilder ( &$resultBuilder )
- This method sets the ResultBuilder used by this instance.
- &_computeQuery ( $queryParameters )
- This is an abstract method that computes the query and return the XML stream.
- &_parseResultXMLStream ( $inputStream )
- This method parses an XML stream representing the search results and generates the Array of SearchResult instances, keeping the results in the same order as in the stream.
- _searchLog ( $message, [$priority = LOG_INFO] )
- This methods is used to send information to the logger
Class Details
Implementation class for Microsoft IndexServer.
This implementation posts a search query
to a .idq file served by Microst IIS server coupled
with Index Server.
Before calling search method, in any script, include
the configuration script defining the needed constants
to interface IndexServer. (Temporary solution).
Tags:
- Package - sevenseas
[ Top ]
Class Variables
Class Methods
constructor SearchEngine_IndexServer
void constructor SearchEngine_IndexServer ( )
Constructor for this implementation, used by the SearchEngine factory method
Tags:
- Access - private
Parameters:
[ Top ]
_computePostFields
String _computePostFields ( $queryParameters )
This method computes the data to post given the query parameters
Tags:
- Return - representing the data ready to be posted as is
- Access - private
Parameters:
- Array $queryParameters - containing the query parameters
[ Top ]
_computeQuery
String &_computeQuery ( $queryParameters )
Implementation for Index Server
Tags:
- Return - XML result stream validating the indexresults.xsd XML Schema
- Access - private
Overrides: SearchEngine::_computeQuery()
Parameters:
- Array $queryParameters - query parameters
[ Top ]
_prepareTextQuery
String _prepareTextQuery ( $query )
This methods prepare a text query so that it is represented as IndexServer
uses it.
Tags:
- Return - modified query
- Access - private
Parameters:
- String $query - Query that needs to be modified
[ Top ]