Open-CSP / WikiSearch

Faceted search for Semantic MediaWiki.
GNU General Public License v2.0
5 stars 4 forks source link

Honor class=searchaux to remove stuff from the fulltext index #23

Open bertrandgorge opened 1 year ago

bertrandgorge commented 1 year ago

Hello, since a good number of setups might work in conjunction with CirrusSearch, it could be a good thing to honor the searchaux class that removes bits from the CirrusSearch index: https://www.mediawiki.org/wiki/Help:CirrusSearch#Full_text_search

bertrandgorge commented 1 year ago

Actually there's also the class navigation-not-searchable which is not clear weither it has an impact or not...? https://linuxreviews.org/HTML_Rules_For_Preventing_Search_Engines_From_Indexing_Parts_Off_Web_Pages

marijnvanwezel commented 1 year ago

Thanks. I have merged your pull request. I think it would also be useful to add an exclusion for navigation-not-searchable, but then the list of exclusions would get rather large. It might be better to generalise this into a configuration parameter that allows the user to specify which classes to exclude from the index.