Optional Fields in the search index

Hello,

We use Bitwarden Entreprise with thousands of password and hundred of clients, the search is very slow.
By looking at code and the profiler we noticed the slowness come from the search, indexing everything doesn’t take that much time, but the query is very slow.
The reason is simple, some fields like “notes” can grow and start to be very large to index, if we patch the client by removing “notes” indexing everything is suddenly fast.

the possible fix would be to have client side option to parametrize the index, if we could have an option to disable some field from the search index it would improve the experience for every business users.

the patch i’ve used to prove from where the slowness was

Hi @remijouannet and welcome to community! :waving_hand:

We’re excited to work with you on this. For code contributions, you’ll want to post here: bitwarden Password Manager · Discussions · GitHub and take a look at our Contributing | Bitwarden Contributing Documentation.

Thanks in advance for your contributions! :rocket:

Hello, the code snippet i’ve posted is not for contribution. it’s too much work to implement this, there is code change for backend and frontend. that’s why i’ve done this post in the “feature request” category