Interfaces
Contents
Introduction
Your collected data can be exposed by defining search interfaces. Essentially, a search interface allows you to select which collections and thesauri to combine, as well as the ability to tune and boost your search down to field level.
Basics
Each interface needs a unique name.
Additionally, you need to specify at least one collection to include in the search.
Filters
You can define must and mustNot filters to avoid search results that don’t meet the required quality. For instance it’s normally useful that a search result actually has an uri so it can be navigated to.
![Interface filters](/docs/explorer/1.4/admin/interfaces/_/image/72e2c882-3d66-4dd9-8a88-64b42b32d0f2:1df8ef454ed4425dd2d7b87ef70c35077bce7338/width-768/interface-filters.png)
Read more about filters here: https://developer.enonic.com/docs/xp/stable/storage/noql#filters
Query
You may configure a simple fulltext query, or group multiple expressions together using a logic expression. Combining a boosted fulltext query, with a ngram and synonym query can be a good idea.
![Interface query](/docs/explorer/1.4/admin/interfaces/_/image/c680f51f-8d04-4ed1-a6eb-4a028f7c2c97:1750ecba01528fcea7c6f79b223256a03c29e4fd/width-768/interface-query.png)
Synonyms
TODO
Learn mode about querying here: https://developer.enonic.com/docs/xp/stable/storage/noql#query_functions
Stop-words
TODO
Result mapping
Here you can configure which fields are provided to the frontend and do some simple data manipulation.
![Interface mappings](/docs/explorer/1.4/admin/interfaces/_/image/ff63e9e3-7c46-4f40-89cf-e45bb6bdfca4:8224a404fdf95822b09cf31585a649a1459f145b/width-768/interface-mappings.png)