Find answers from the community

Updated 2 years ago

Custom?

At a glance

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.

Useful resources
How to get custom index and custom query to work?https://gist.github.com/krystianMoras/9ef1a399d9688535712ac0028a54916c <- here I swap registry map, but I hope there is/will be cleaner solution
L
K
3 comments
You are trying to add a new type of index?

I think that's probably the cleanest it will get, besides actually integrating with the codebase
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.
Yea it's definitely hacky. Normally something like this could be added to the code base as a PR so that the UX isn't as janky lol
Add a reply
Sign up and join the conversation on Discord