CQParseUserQuery (open)
Parse a user query
Syntax
LOADLIB "mod::consilio/lib/api.whlib";
RECORD FUNCTION CQParseUserQuery(STRING userquery, RECORD options)Parameters
STRING userqueryUser query string
RECORD optionsOptions
FLOAT boostFactor to increase or decrease the score for this query (defaults to 1f)
RECORD ARRAY defaultfieldsFields to search for terms without explicit field specification
FLOAT defaultfields.boostFactor to increase or decrease the score for this field (defaults to 1f)
STRING defaultfields.fieldField name
BOOLEAN defaultfields.stemmed_fieldSet to true to also use stemming when searching for terms in this field
STRING querymodeHow to combine the toplevel terms, either 'AND' or 'OR' (defaults to 'AND')
BOOLEAN synonymsIf the catalog synonyms list should be used (defaults to TRUE, Opensearch only)
Return value
RECORDConsilio query record