Version:

cts functions (cts:query Constructors)

The cts:query constructor functions allow you to build arbitrarily complex cts:query specifications. Each cts:query constructor function has corresponding accessor functions, which are used to get the values of parameters in a cts:query.

Included in the cts:query functions is the cts:registered-query function, which provides a mechanism to precompute and store in the cache unfiltered cts:query result primitives.

148 functions
Function nameDescription
cts:and-not-queryReturns a query specifying the set difference of the matches specified by two sub-queries.
cts:and-not-query-negative-queryReturns the negative (second parameter) query used to construct the specified query.
cts:and-not-query-positive-queryReturns the positive (first parameter) query used to construct the specified query.
cts:and-queryReturns a query specifying the intersection of the matches specified by the sub-queries.
cts:and-query-optionsReturns the options for the specified query.
cts:and-query-queriesReturns a sequence of the queries that were used to construct the specified query.
cts:boost-queryReturns a query specifying that matches to $matching-query should have their search relevance scores boosted if they also match $boosting-query.
cts:boost-query-boosting-queryReturns the boosting (second parameter) query used to construct the specified boost query.
cts:boost-query-matching-queryReturns the matching (first parameter) query used to construct the specified boost query.
cts:collection-queryReturns a query matching documents in the collections with the given URIs.
cts:collection-query-urisReturns the URIs used to construct the specified query.
cts:directory-queryReturns a query matching documents in the directories with the given URIs.
cts:directory-query-depthReturns the depth used to construct the specified query.
cts:directory-query-urisReturns the URIs used to construct the specified query.
cts:document-fragment-queryReturns a query that matches all documents where $query matches any document fragment.
cts:document-fragment-query-queryReturns the query used to construct the specified query.
cts:document-queryReturns a query matching documents with the given URIs.
cts:document-query-urisReturns the URIs used to construct the specified query.
cts:element-attribute-pair-geospatial-queryReturns a cts:query matching elements by name which has specific attributes representing latitude and longitude values for a point contained within the given geographic box, circle, or polygon, or equal to the given point.
cts:element-attribute-pair-geospatial-query-element-nameReturns the QNames used to construct the specified query.
cts:element-attribute-pair-geospatial-query-latitude-nameReturns the QNames used to construct the specified query.
cts:element-attribute-pair-geospatial-query-longitude-nameReturns the QNames used to construct the specified query.
cts:element-attribute-pair-geospatial-query-optionsReturns the options for the specified query.
cts:element-attribute-pair-geospatial-query-regionReturns the geographical regions with which the specified query was constructed.
cts:element-attribute-pair-geospatial-query-weightReturns the weight with which the specified query was constructed.
cts:element-attribute-range-queryReturns a cts:query matching element-attributes by name with a range-index entry equal to a given value.
cts:element-attribute-range-query-attribute-nameReturns the QNames used to construct the specified query.
cts:element-attribute-range-query-element-nameReturns the QNames used to construct the specified query.
cts:element-attribute-range-query-operatorReturns the operator used to construct the specified query.
cts:element-attribute-range-query-optionsReturns the options for the specified query.
cts:element-attribute-range-query-valueReturns the value used to construct the specified query.
cts:element-attribute-range-query-weightReturns the weight with which the specified query was constructed.
cts:element-attribute-value-queryReturns a query matching elements by name with attributes by name with text content equal a given phrase.
cts:element-attribute-value-query-attribute-nameReturns the attribute QNames used to construct the specified query.
cts:element-attribute-value-query-element-nameReturns the element QNames used to construct the specified query.
cts:element-attribute-value-query-optionsReturns the options for the specified query.
cts:element-attribute-value-query-textReturns the text used to construct the specified query.
cts:element-attribute-value-query-weightReturns the weight with which the specified query was constructed.
cts:element-attribute-word-queryReturns a query matching elements by name with attributes by name with text content containing a given phrase.
cts:element-attribute-word-query-attribute-nameReturns the attribute QNames used to construct the specified query.
cts:element-attribute-word-query-element-nameReturns the element QNames used to construct the specified query.
cts:element-attribute-word-query-optionsReturns the options for the specified query.
cts:element-attribute-word-query-textReturns the text used to construct the specified query.
cts:element-attribute-word-query-weightReturns the weight with which the specified query was constructed.
cts:element-child-geospatial-queryReturns a cts:query matching elements by name which has specific element children representing latitude and longitude values for a point contained within the given geographic box, circle, or polygon, or equal to the given point.
cts:element-child-geospatial-query-child-nameReturns the QNames used to construct the specified query.
cts:element-child-geospatial-query-element-nameReturns the QNames used to construct the specified query.
cts:element-child-geospatial-query-optionsReturns the options for the specified query.
cts:element-child-geospatial-query-regionReturns the geographical regions with which the specified query was constructed.
cts:element-child-geospatial-query-weightReturns the weight with which the specified query was constructed.
cts:element-geospatial-queryReturns a cts:query matching elements by name whose content represents a point contained within the given geographic box, circle, or polygon, or equal to the given point.
cts:element-geospatial-query-element-nameReturns the QNames used to construct the specified query.
cts:element-geospatial-query-optionsReturns the options for the specified query.
cts:element-geospatial-query-regionReturns the geographical regions with which the specified query was constructed.
cts:element-geospatial-query-weightReturns the weight with which the specified query was constructed.
cts:element-pair-geospatial-queryReturns a cts:query matching elements by name which has specific element children representing latitude and longitude values for a point contained within the given geographic box, circle, or polygon, or equal to the given point.
cts:element-pair-geospatial-query-element-nameReturns the QNames used to construct the specified query.
cts:element-pair-geospatial-query-latitude-nameReturns the QNames used to construct the specified query.
cts:element-pair-geospatial-query-longitude-nameReturns the QNames used to construct the specified query.
cts:element-pair-geospatial-query-optionsReturns the options for the specified query.
cts:element-pair-geospatial-query-regionReturns the geographical regions with which the specified query was constructed.
cts:element-pair-geospatial-query-weightReturns the weight with which the specified query was constructed.
cts:element-queryReturns a cts:query matching elements by name with the content constrained by the given cts:query in the second parameter.
cts:element-query-element-nameReturns the QNames used to construct the specified query.
cts:element-query-queryReturns the query used to construct the element query.
cts:element-range-queryReturns a cts:query matching elements by name with a range-index entry equal to a given value.
cts:element-range-query-element-nameReturns the QNames used to construct the specified query.
cts:element-range-query-operatorReturns the operator used to construct the specified query.
cts:element-range-query-optionsReturns the options for the specified query.
cts:element-range-query-valueReturns the value used to construct the specified query.
cts:element-range-query-weightReturns the weight with which the specified query was constructed.
cts:element-value-queryReturns a query matching elements by name with text content equal a given phrase.
cts:element-value-query-element-nameReturns the QNames used to construct the specified query.
cts:element-value-query-optionsReturns the options for the specified query.
cts:element-value-query-textReturns the text used to construct the specified query.
cts:element-value-query-weightReturns the weight with which the specified query was constructed.
cts:element-word-queryReturns a query matching elements by name with text content containing a given phrase.
cts:element-word-query-element-nameReturns the QNames used to construct the specified query.
cts:element-word-query-optionsReturns the options for the specified query.
cts:element-word-query-textReturns the text used to construct the specified query.
cts:element-word-query-weightReturns the weight with which the specified query was constructed.
cts:field-range-queryReturns a cts:query matching fields by name with a range-index entry equal to a given value.
cts:field-range-query-field-nameReturns the fieldname used to construct the specified query.
cts:field-range-query-operatorReturns the operator used to construct the specified query.
cts:field-range-query-optionsReturns the options for the specified query.
cts:field-range-query-valueReturns the value used to construct the specified query.
cts:field-range-query-weightReturns the weight with which the specified query was constructed.
cts:field-value-queryReturns a query matching text content containing a given value in the specified field.
cts:field-value-query-field-nameReturns the names used to construct the specified cts:field-value-query.
cts:field-value-query-optionsReturns the options for the specified cts:field-value-query.
cts:field-value-query-textReturns the text used to construct the specified cts:field-value-query.
cts:field-value-query-weightReturns the weight with which the specified query was constructed.
cts:field-word-queryReturns a query matching text content containing a given phrase in the specified field.
cts:field-word-query-field-nameReturns the names used to construct the specified cts:field-word-query.
cts:field-word-query-optionsReturns the options for the specified cts:field-word-query.
cts:field-word-query-textReturns the text used to construct the specified cts:field-word-query.
cts:field-word-query-weightReturns the weight with which the specified query was constructed.
cts:locks-queryReturns a query that matches all documents where $query matches document-locks.
cts:locks-query-queryReturns the query used to construct the specified query.
cts:near-queryReturns a query matching all of the specified queries, where the matches occur within the specified distance from each other.
cts:near-query-distanceReturns the distance used to construct the near query.
cts:near-query-optionsReturns the options for the specified query.
cts:near-query-queriesReturns the query sequence used to construct the near query.
cts:near-query-weightReturns the weight with which the specified query was constructed.
cts:not-in-queryReturns a query matching the first subquery, where those matches do not occur within 0 distance of the other query.
cts:not-in-query-negative-queryReturns the negative (second parameter) query used to construct the specified query.
cts:not-in-query-positive-queryReturns the positive (first parameter) query used to construct the specified query.
cts:not-queryReturns a query specifying the matches not specified by its sub-query.
cts:not-query-queryReturns the query used to construct the specified query.
cts:not-query-weightReturns the weight with which the specified query was constructed.
cts:or-queryReturns a query specifying the union of the matches specified by the sub-queries.
cts:or-query-queriesReturns a sequence of the queries that were used to construct the specified query.
cts:path-geospatial-queryReturns a cts:query matching path expressions whose content represents a point contained within the given geographic box, circle, or polygon, or equal to the given point.
cts:path-geospatial-query-optionsReturns the options for the specified query.
cts:path-geospatial-query-path-expressionReturns the path expressions used to construct the specified query.
cts:path-geospatial-query-regionReturns the geographical regions with which the specified query was constructed.
cts:path-geospatial-query-weightReturns the weight with which the specified query was constructed.
cts:path-range-queryReturns a cts:query matching paths with a range-index entry equal a given value.
cts:path-range-query-operatorReturns the operator used to construct the specified query.
cts:path-range-query-optionsReturns the options for the specified query.
cts:path-range-query-path-nameReturns the path expression used to construct the specified query.
cts:path-range-query-valueReturns the value used to construct the specified query.
cts:path-range-query-weightReturns the weight with which the specified query was constructed.
cts:properties-queryReturns a query that matches all documents where $query matches document-properties.
cts:properties-query-queryReturns the query used to construct the specified query.
cts:queryCreates a query.
cts:registered-queryReturns a query matching fragments specified by previously registered queries (see cts:register).
cts:registered-query-idsReturns the registered query identifiers used to construct the specified query.
cts:registered-query-optionsReturns the options for the specified query.
cts:registered-query-weightReturns the weight with which the specified query was constructed.
cts:reverse-queryReturns a query matching the model nodes.
cts:reverse-query-nodesReturns the nodes used to construct the specified query.
cts:reverse-query-weightReturns the weight with which the specified query was constructed.
cts:similar-queryReturns a query matching nodes similar to the model nodes.
cts:similar-query-nodesReturns the nodes used to construct the specified query.
cts:similar-query-weightReturns the weight with which the specified query was constructed.
cts:triple-range-queryReturns a cts:query matching triples with a triple index entry equal to the given values.
cts:triple-range-query-objectReturns the object value used to construct the specified query.
cts:triple-range-query-operatorReturns the operators used to construct the specified query.
cts:triple-range-query-optionsReturns the options for the specified query.
cts:triple-range-query-predicateReturns the predicate value used to construct the specified query.
cts:triple-range-query-subjectReturns the subject value used to construct the specified query.
cts:triple-range-query-weightReturns the weight with which the specified query was constructed.
cts:valid-index-pathParses path expressions and resolves namespaces based on the server run-time environment.
cts:word-queryReturns a query matching text content containing a given phrase.
cts:word-query-optionsReturns the options for the specified query.
cts:word-query-textReturns the text used to construct the specified query.
cts:word-query-weightReturns the weight with which the specified query was constructed.