lunr supports custom field searches. https://lunrjs.com/guides/searching.html#fields
eg idx.search('title:foo* bar')
It would be really nice to be able to specify a regex or similar to be able to identify custom fieldname: value in the docs that can be indexed and subsequently searched for.