Search in the Documentation:

Full text queries using search tag librairies

The full-text query feature is made available through a set of tags that are focused on searching using basic text matching with content object properties or file contents. It produces results as hits that contain information such as the target object that matched the result, an extract of the matching content and the matching score. It also supports search options defined by the JSR-283 standard such as optional words, mandatory or excluded words, search by sentence or word, etc.

Here is an overview of the features available when using full text queries:

  • Search on all content within a site.

  • Search on multiple sites on the server.

  • Search the contents of files in the content repository.

  • Search the contents of files in external repository (only with the Jahia United Content Hub extension).

  • Highlight searched terms in the results page.

  • Order by matching score.

  • Exclusion of matching property (through content definition parameters).

  • Limit results to improve performance.

Full text queries are a great way to offer an easy to use yet powerful search feature on a Jahia installation, but they are not very useful to perform more targeted queries, such as retrieving a list of the last 10 news entries or similar queries. This is where the query languages become interesting.