We use whoosh for indexing. The currently used package https://github.com/mchaput/whoosh is no longer maintained. There is a successor at https://github.com/Sygil-Dev/whoosh-reloaded.