Search code examples
rubymaglev

How can I search a Ruby Maglev array of objects?


How can I search a maglev array of objects? Maglev is great but it doesn't seem to have any querying capabilities. Are there any external libraries for this?


Solution

  • The underlying MagLev VM has had index support for quite a while. There is an example of indexing and querying a collection in http://github.com/MagLev/maglev/tree/master/examples/persistence/indexing/

    We had to turn indexing off for a while, but we'll have it turned on, with an updated example, in the next release (probably in a few days).