The search index is an important resource, so use it carefully. CQ indexes template csd.xml the component atoms.xml if you do not specify to ignore indexing. Indexing these files can result in performance problems and large memory consumption.
By default, indexinghint="default" does a full-text index of the atom. Determine what to index and what not to index by asking yourself the following question:
"Do I want to see this atom in a search result?"
If the answer is no, disable indexing for this atom. After you disable the indexing for an atom, search can't find any results for that atom. Here is how to change the config to disable the indexing for your atoms:
- Iterate all of your atoms.xml under your components. Change
indexinghint="ignore" only for the atoms that you want to disable indexing.
- Iterate all of your csd.xml files and do the same.
- Delete your component hierarchy files under your templates to force csd.xml files to be rebuilt
- Stop your instance.
- Delete the cq_home/data/your_instance/search/fulltext folder.
- Start your instance. Restart can take a while depending on your content size, since Lucene reindexes the content.