OpenCms ships with a default configuration for the indexation of resources. The configuration is optimized with respect to the structure of OpenCms resources. So, for example, properties are indexed by default. But, some choices do not have an over-all good default. In particular concerning XML contents, the answers to the following questions are specific to the actual use case:
- Which schema elements of a structured content should not be indexed at all?
- Which schema elements of a structured content should be mapped to special index fields (of special type)?
- Should an XML content be findable as the content itself, or only the container-page the content is located on (or both notIf you do not want to find your content via the container page, there is a setting available in the formatter configuration.)?
The answers to these questions are mainly specific to your use-case. Thus you have to choose the settings by yourself. As guidelines you may regard:
- If you have a Boolean value or a date stored in your content, then you may not want to index them - at least not in the general content field.
- If you have detail pages for contents, it is usually intended to find the content as its own. Otherwise this may be not the case.
- If you want to have facets, you may map schema elements to special fields that you use for faceting.
By default
- The content of all schema elements of one language version will be stored in one language-specific text field called
content_{locale}
, e.g.,content_en
. (Here the dates or Boolean values should usually be omitted - learn later how) - The content is indexed such, that it can be found stand-alone (and also the container-page it is located on is findable).