taproot-assets icon indicating copy to clipboard operation
taproot-assets copied to clipboard

[feature]: update QueryAssetStats asset_name_filter to support substring & case-insensitive matches

Open jamaljsr opened this issue 8 months ago • 2 comments

Is your feature request related to a problem? Please describe. When using the REST RPC endpoint /v1/taproot-assets/universe/stats/assets?asset_name_filter=XXX, the name must be an exact match, including exact upper/lowercasing.

Describe the solution you'd like I would like for the filtering to return assets where the asset_name_filter is a substring of the asset's name and to be case-insensitive.

Describe alternatives you've considered Right now, in Terminal, we fetch all assets to do the filtering in the browser. As the amount of assets increases, this becomes unsustainable. We'd like to switch to server-side filtering, and it would be a better UX to allow users to find assets without needing to type the exact full name.

Additional context I mentioned this to @Roasbeef, he said to reference https://www.sqlite.org/fts5.html in regards to text matching at the DB level.

jamaljsr avatar Oct 30 '23 21:10 jamaljsr