olivernn / lunr.js

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

Question re multiple search shards #498

Open alexlangeprvacera opened 3 years ago

alexlangeprvacera commented 3 years ago

Hello, olivernn and others

In https://github.com/olivernn/lunr.js/issues/76 you wrote:

Perhaps a simpler approach is to have multiple indexes or shards, that each contain a subset of the documents you need to search.

Can you give me some guidance, please: how do I create multiple shards? Is a shard simply a separate index? as shown in your example at https://lunrjs.com/guides/getting_started.html#creating-an%0D-index ? on the idx.search function, how do a pass in the name of an index/shard?

Also is there any more concrete documentation about customizing lunr.js with mkdocs?

Please excuse my newbie questions. I am a techwriter, not a super programmer. So any kindly replies will be most appreciated. Thank you!