Skip to content

What is the difference between Index and Dictionary ?? #227

Answered by hendrikmuhs
vsraptor asked this question in Q&A
Discussion options

You must be logged in to vote

It started with dictionaries:

"The immutable FST data structure can be used stand-alone for static datasets."

A dictionary is a static, immutable container, that means it can not be updated once it is written. You get fast access and compact size, for the price of being not update-able.

To overcome this limitation an index is nothing else than a stack of dictionaries. Think of 1 big dictionary and a small dictionary which contains the update. At lookup you first check the small dictionary and if you don't find the answer there, you look into the big dictionary.

"If you need online writes, you can use keyvi index, a near realtime index."

In an index you can create, update, delete entri…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@vsraptor
Comment options

@vsraptor
Comment options

@vsraptor
Comment options

@hendrikmuhs
Comment options

Answer selected by narekgharibyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants