WIKINDX API trunk

PARSEPHRASE
in package

PARSEPHRASE -- break up a search phrase into component parts such as 'exact phrase', AND, OR and NOT

Table of Contents

Properties

$ands  : mixed
array
$andsFT  : mixed
array
$asearchActive  : mixed
bool
$asearchActiveFT  : mixed
bool
$nots  : mixed
array
$notsFT  : mixed
array
$ors  : mixed
array
$orsFT  : mixed
array
$searchType  : mixed
string
$storeHighlights  : mixed
boolean
$testArray  : mixed
array

Methods

__construct()  : mixed
PARSEPHRASE
parse()  : mixed
Parse input and create SQL condition

Properties

$asearchActive

bool

public mixed $asearchActive = \FALSE

$asearchActiveFT

bool

public mixed $asearchActiveFT = \FALSE

$searchType

string

public mixed $searchType = 'qsearch'

$storeHighlights

boolean

public mixed $storeHighlights = \TRUE

Methods

__construct()

PARSEPHRASE

public __construct() : mixed

parse()

Parse input and create SQL condition

public parse(array<string|int, mixed> $input[, bool $test = false ][, bool $stringSearch = false ][, bool $attachmentSearch = false ][, bool $fulltext = false ]) : mixed
Parameters
$input : array<string|int, mixed>

$input['Word'] is the input string from the search form

$test : bool = false

if TRUE formats the string for the natural language section of ASEARCH.php. Default is FALSE

$stringSearch : bool = false

if TRUE formats the string for searching attachments in ASEARCH.php. Default is FALSE

$attachmentSearch : bool = false

if TRUE manages the use of wildcards for attachment searches

$fulltext : bool = false

Default is FALSE. If TRUE, return a string formatted for FULLTEXT, else a string formatted for LIKE/REGEXP.

Return values
mixed

FALSE|array


        
On this page

Search results