What does atmospherejs use to search fields incrementally?

When I visit atmospherejs and search for a package it searches new packages based on the currently typed string. In mongo it seems only possible to find for a specific string though, so how did they achieve that?

With the mongo $text selector and text indexes enabled: http://docs.mongodb.org/manual/reference/operator/query/text/

And/or regex and/or elasticsearch :wink:

1 Like