dokufreaks / plugin-cloud

GNU General Public License v2.0
19 stars 13 forks source link

Tags in TAGCLOUD are blacklisted by stopwords.txt #80

Open sokolgeo opened 2 years ago

sokolgeo commented 2 years ago

I run the latest Dokuwiki and cloud plugin updated from repository. In one of my Dokuwiki pages have the following code:

====== TAGS ======

~~TAGCLOUD~~

====== WORDS ======

~~CLOUD:50~~

Unfortunately both CLOUD and TAGCLOUD get their items blacklisted when I add the items into stopwords.txt

It is my understanding that

stopwords are only for the word cloud, not for the tag cloud https://www.dokuwiki.org/plugin:cloud#stopwords_in_tag_clouds

Therefore the above behavior seems to be a bug? May be this is because both CLOUD and TAGCLOUD are placed in the same page?

Any ideas how to make stopwords.txt only impact the items in CLOUD, not in TAGCLOUD ?

Thank you

Klap-in commented 1 year ago

In the configurations settings are also three blacklists (word_blacklist, tag_blacklist and search_blacklist). These allow more tailored blacklisting. The stopwords are in my understanding indeed specific for fulltext indexing, so it better to remove the stopword filter here in my opinion. I think the blacklists should be used.

Disadvantage is that such removal is not backward compatible for people already using it to manage their tag/searchcloud.