[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/search/ -> SearchSqlite.php (summary)

SQLite search backend, based upon SearchMysql This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 307 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SearchSqlite:: (15 methods):
  fulltextSearchSupported()
  parseQuery()
  regexTerm()
  legalSearchChars()
  searchText()
  searchTitle()
  searchInternal()
  queryNamespaces()
  limitResult()
  getQuery()
  getIndexField()
  queryMain()
  getCountQuery()
  update()
  updateTitle()


Class: SearchSqlite  - X-Ref

Search engine hook for SQLite

fulltextSearchSupported()   X-Ref
Whether fulltext search is supported by current schema

return: bool

parseQuery( $filteredText, $fulltext )   X-Ref
Parse the user's query and transform it into an SQL fragment which will
become part of a WHERE clause

param: string $filteredText
param: bool $fulltext
return: string

regexTerm( $string, $wildcard )   X-Ref
No description

legalSearchChars()   X-Ref
No description

searchText( $term )   X-Ref
Perform a full text search query and return a result set.

param: string $term Raw search term
return: SqlSearchResultSet

searchTitle( $term )   X-Ref
Perform a title-only search query and return a result set.

param: string $term Raw search term
return: SqlSearchResultSet

searchInternal( $term, $fulltext )   X-Ref
No description

queryNamespaces()   X-Ref
Return a partial WHERE clause to limit the search to the given namespaces

return: string

limitResult( $sql )   X-Ref
Returns a query with limit for number of results set.

param: string $sql
return: string

getQuery( $filteredTerm, $fulltext )   X-Ref
Construct the full SQL query to do the search.
The guts shoulds be constructed in queryMain()

param: string $filteredTerm
param: bool $fulltext
return: string

getIndexField( $fulltext )   X-Ref
Picks which field to index on, depending on what type of query.

param: bool $fulltext
return: string

queryMain( $filteredTerm, $fulltext )   X-Ref
Get the base part of the search query.

param: string $filteredTerm
param: bool $fulltext
return: string

getCountQuery( $filteredTerm, $fulltext )   X-Ref
No description

update( $id, $title, $text )   X-Ref
Create or update the search index record for the given page.
Title and text should be pre-processed.

param: int $id
param: string $title
param: string $text

updateTitle( $id, $title )   X-Ref
Update a search index record's title only.
Title should be pre-processed.

param: int $id
param: string $title



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1