s-yata / marisa-trie

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

How can I do search? #51

Closed Ingsuifon closed 1 year ago

Ingsuifon commented 1 year ago

I find the function _find, but I think it is an internal function and I don't know how to use it, is it right ? _find(key, 0, 0, len(key))

jmr commented 1 year ago

I don't see _find. Where is it?

Does Trie::lookup do what you want?

https://www.s-yata.jp/marisa-trie/docs/readme.en.html

https://github.com/s-yata/marisa-trie/blob/006020c1df76d0d7dc6118dacc22da64da2e35c4/include/marisa/trie.h#L34

Ingsuifon commented 1 year ago

Sorry, this is the problem of cedar, I asked the wrong place.