Loading...
 
Features / Usability

Features / Usability


View PDF inline

posts: 126825 United Kingdom
Shafeeq Hamza wrote:
I did try searching, even rebuilt the search index; but could not find "pdf.js"...

Hi Shafeeq Hamza
Glad you worked it out, the issue with not being able to find "pdf.js" in the prefs search is due to mysql having a minimal search term length of four characters. We have a similar issue i think with H5P as reported by luciash d' being 🧙 (it works fine with elasticsearch, but that's not much help i know!)

Not sure how to fix it (you can change the mysql ft_min_word_len in the my.conf file, but only if you have root access, i suppose we could add keywords like pdfdotjs but would anyone think of searching for that?

Any better ideas any one?

posts: 3 India
Jonny Bradley wrote:

Not sure how to fix it (you can change the mysql ft_min_word_len in the my.conf file, but only if you have root access, i suppose we could add keywords like pdfdotjs but would anyone think of searching for that?

Any better ideas any one?


One of the non-elegant solutions suggested on another forum is to pre-test the keyword length and either construct a 'like' based search for text shorter than 4 characters; otherwise go with the full-text 'match'...