The community member is trying to get a custom index and custom query to work, and has provided a link to a Gist with their solution. The comments suggest that this solution is "hacky" and that a cleaner solution would be to integrate the changes directly into the codebase. However, the community members note that creating additional IndexStructTypes and QueryModes may be too much for their use case. There is no explicitly marked answer, but the community members seem to agree that the current solution is not ideal.
Feels hacky, but alternative is creating additional IndexStructTypes, QueryModes etc. which is too much for my use case. Just leaving it here for people if they try to do the same thing.