s-yata / marisa-trie

MARISA: Matching Algorithm with Recursively Implemented StorAge
Other
506 stars 89 forks source link

ID Assigned according to the lexicographical order #41

Open czs007 opened 3 years ago

czs007 commented 3 years ago

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.