4 ms·
edit: The deleted comment suggested to store the index in all lowercase, with no separators, like 'deadbeefcafe,' and then apply the same transform to my query
by hackmiester 11y ago
edit: The deleted comment suggested to store the index in all lowercase, with no separators, like 'deadbeefcafe,' and then apply the same transform to my query before running it.
I like that idea! But the way to provide the index criterion seems to be via regex, and I don't think I can use just a regex to apply transformations to the index before storing it.
If I were better with C-type languages, I would likely submit a pull request.
- cjbprime 11y agoSorry, deleted after realizing that zindex just wanted a regex match. If we could make zindex allow specifying a substitution regex when deciding what string to index under, that would work; your regex could be one that matches a MAC address and converts it to lowercase/strips punctuation, and then on the query side you could do the same with e.g. sed before piping to zq.