olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.94k stars 548 forks source link

Search is extremely slow #438

Closed alexey-milovidov closed 4 years ago

alexey-milovidov commented 4 years ago

Sorry for so vague description.

If you open https://clickhouse.yandex/docs/en/ and start typing "aaaaaaaaa" in search form, the browser will lock-up for at least a few seconds. It reproduces both in Chromium and Firefox.

I'm not a JS developer and today just figured out that we are using your technology, but I'm not sure if this issue is a drawback of your library or we just using it incorrectly.

All our frontend developers have disappeared and there is nobody to help us :)

olivernn commented 4 years ago

Without more detail its difficult to be sure, but this sounds similar to a couple of issues seen in the past:

This was a bug and a fix was pushed in version 2.3.3.

Can you confirm that the version of lunr you are running is > 2.3.3?

alexey-milovidov commented 4 years ago

Yes, we use old version. Though I cannot confirm that this issue is related to that cases. Thank you!