[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

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

PostgreSQL search engine Copyright © 2006-2007 Greg Sabino Mullane <[email protected]> https://www.mediawiki.org/

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

Defines 1 class

SearchPostgres:: (6 methods):
  searchTitle()
  searchText()
  parseQuery()
  searchQuery()
  update()
  updateTitle()


Class: SearchPostgres  - X-Ref

Search engine hook base class for Postgres

searchTitle( $term )   X-Ref
Perform a full text search query via tsearch2 and return a result set.
Currently searches a page's current title (page.page_title) and
latest revision article text (pagecontent.old_text)

param: string $term Raw search term
return: SqlSearchResultSet

searchText( $term )   X-Ref
No description

parseQuery( $term )   X-Ref
Transform the user's search string into a better form for tsearch2
Returns an SQL fragment consisting of quoted text to search for.

param: string $term
return: string

searchQuery( $term, $fulltext, $colname )   X-Ref
Construct the full SQL query to do the search.

param: string $term
param: string $fulltext
param: string $colname
return: string

update( $pageid, $title, $text )   X-Ref
No description

updateTitle( $id, $title )   X-Ref
No description



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