Because the language-specific trimmers are seriously defective at the moment (see #149) in both lunr.py and lunr.js (they don't include \w for instance), I need to be able to replace them. Unfortunately this is difficult to do robustly, because the API (which is inherited from lunr.js, so it's not your fault!) only has add, remove, before and after.
Because the language-specific trimmers are seriously defective at the moment (see #149) in both lunr.py and lunr.js (they don't include
\w
for instance), I need to be able to replace them. Unfortunately this is difficult to do robustly, because the API (which is inherited from lunr.js, so it's not your fault!) only hasadd
,remove
,before
andafter
.I would like to be able to do:
But instead I have to do this: