CQParseUserQuery (open)

Parse a user query

Syntax

LOADLIB "mod::consilio/lib/api.whlib";

RECORD FUNCTION CQParseUserQuery(STRING userquery, RECORD options)

Parameters

STRING userquery

User query string

RECORD options

Options

FLOAT boost

Factor to increase or decrease the score for this query (defaults to 1f)

RECORD ARRAY defaultfields

Fields to search for terms without explicit field specification

FLOAT defaultfields.boost

Factor to increase or decrease the score for this field (defaults to 1f)

STRING defaultfields.field

Field name

BOOLEAN defaultfields.stemmed_field

Set to true to also use stemming when searching for terms in this field

STRING querymode

How to combine the toplevel terms, either 'AND' or 'OR' (defaults to 'AND')

BOOLEAN synonyms

If the catalog synonyms list should be used (defaults to TRUE, Opensearch only)

Return value

RECORD

Consilio query record