Im indexing a knowledgebase with solr. The problem is, that the menu is indexed as well, so searching for a term used in the menu returns all pages.
Can I somehow tell solr to exclude a special html class from indexing?
HTML-Tags are removed, so I cant find the specified element later.
EDIT:
I added a short sample for what I want to achieve.
That is, to exclude certain html nodes (like my navigation) from beeing indexed.
Sample html:
- topic-1
- topic-2
- topic-3
Topic-1
Lorem ipsum dolor sit ament...
What I currently get in my index from that:
topic-1
topic-2
topic-3
Topic-1
lorem ipsum dolor sit ament...
What I want to get in my index fom that:
Topic-1
lorem ipsum dolor sit ament...