XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/documentation/search

/db/apps/doc/modules/search.xql

================================================ Implements the documentation search. ================================================

dq:do-query

dq:do-query($context as node()*, $query as xs:string?, $field as xs:string?) as element()*

Returns the elements for which the $query matches.

Parameters:
$context* the nodes to search
$query? the full-text query
$field? the name of a field, if the query should be restricted to a specific field
Returns:
element()* : The elements that match the query, typically one of: db5:title, db5:keyword, db5:para, db5:sect1, db5:sect2, db5:sect3.

dq:query

dq:query($node as node()*, $model as map(*), $q as xs:string?, $field as xs:string, $view as xs:string) as element()?

Templating function: process the query.

Parameters:
$node* $node*
$model $model
$q? $q?
$field $field
$view $view
Returns:
element()?