Mindbreeze GmbH, A-4020 Linz, 2022.
All rights reserved. All hardware and software names used are brand names and/or trademarks of their respective manufacturers.
These documents are strictly confidential. The submission and presentation of these documents does not confer any rights to our software, our services and service outcomes, or any other protected rights. The dissemination, publication, or reproduction hereof is prohibited.
For ease of readability, gender differentiation has been waived. Corresponding terms and definitions apply within the meaning and intent of the equal treatment principle for both sexes.
The Query Expression Label Transformer service allows the user to configure transformations on labeled query expressions. These transformations can be simple label rewrites or transforming the query expression in a subquery with configured references.
The Query Transformation Service can be configured with adding a service of type QueryExprLabelTransformer.
The Service has to be assigned a free port for bind port.
The transformations for query expressions with given label can be set up with adding Labeled Transformation elements.
The labeled transformations have the following attributes:
Label of matching labeled query expression that will be transformed by this item.
Destination Query Label
The label of the generated labeled query.
Source Query Value Pattern
If configured and “Transformed Query Expression Value” is also set, all labeled queries with subexpressions of type Term, Quoted Term or Unparsed, where the term, quoted term or unparsed value of the expression the configured pattern match, will be replaced with an unparsed query of value set in “Transformed Query Expression Value”.
Transformed Query Expression Value
The replacement query for the expressions matching the pattern “Source Query Value Pattern”
The query string can contain references to the pattern groups.
Original query term: COO.220.127.116.110
Source Query Value Pattern: (COO.18.104.22.1680|COO.22.214.171.12480)
Transformed Query Expression Value: mail OR $1
Resulting unparsed query: mail OR COO.126.96.36.1990
Transform to Subquery
If checked, the matching labeled expression will be transformed in a subquery. The subquery has the following components:
Expr: a labeled expression with “Destination Query Label” as label and the original constraint. If a “Common Query Constraint” is defined, this will be combined with the labeled expression using an AND operation
RestrictToPropertyExpr: the set of configured references in “Collect Documents Via References (SubQuery)”
If not enabled the label of the matched expression is changed only to the configured “Destination Query Label”
Collect Documents Via References (SubQuery)
List of references separated by “;”. If “Transform to Subquery” is enabled and the transformation generates a subquery expression, the references are added to the “RestrictToProperty” statement of the subquery.
Common Subquery Constraint
If this constraint is configured, this will be combined with the labeled expression of the subquery
Match Case Insensitive
If configured the matching of “Source Query Label” is case insensitive.
Access Check Query
If set a subquery will be generated with this as query expression and added to the original query with an “AND” operator. This subquery can be used for access checking referenced documents via the referencer.
Access Check Reference Property
The reference property used for the generated sub query expressions RestrictToProperty statement.
The Query Expression Label Transformer service can be enabled for a given query service by adding a reference to the service in the Query Transformation Services section in the Index service configuration:
If the “transform_nonexpandable” property is set to “true” all non-expandable queries from the search request will be transformed using this plugin.
Note that to be able to use subqueries in the index, the “Enable SubQuery Expression Transformation” should be set to “Enabled”.