s-yata / marisa-trie

MARISA: Matching Algorithm with Recursively Implemented StorAge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ID Assigned according to the lexicographical order

czs007 opened this issue · comments

Can the ID be assigned in ascending lexicographical order?
For example, I hope that the ID corresponding to "bbb" is larger than the ID corresponding to "a".
Hope to provide an interface to return ID greater/smaller than a certain string.
The purpose is to transform the comparison of strings into comparison of cooresponding IDs.

I haven't read the code yet, and I don't know if this requirement is feasible in the current architecture.

Looking forward to any feedback, thank you very much.