Help > Federator > Creating Connectors > Query Translator

Query Translator

The native query syntax of Perceptive Enterprise Search is Perceptive Enterprise Search style, therefore all queries are passed around in this format. The Perceptive Enterprise Search query syntax is quite verbose including proximity operators, numeric range searching and Boolean operators. A federated source may support the full set of operators, or only a subset. It is up to the federated connector to translate the incoming query into something the server understands.

The API recognizes the depth of the remote query language may vary, so offers three methods to help you create the query translation logic:

  1. Simple Mapping – requires no coding, the mapping is controlled via an XML configuration file that instructs Perceptive Enterprise Search how to do the mapping. For example, you can instruct Perceptive Enterprise Search that the “AND” operator is a plus symbol (+) and that the OR symbol is not supported.
  2. Complex Mapping – the built in parser allows you to dissect the query into its core parts. Using a recursive decent parser, you can walk the query as a tree.
  3. Manual – no attempt is made to parse the query, the connector parses it itself.

In this section

Simple Query Translator  
Complex Query Translator