An open API service indexing awesome lists of open source software.

https://github.com/willf/inverted_index_simple

Simple inverted index code
https://github.com/willf/inverted_index_simple

Last synced: about 1 year ago
JSON representation

Simple inverted index code

Awesome Lists containing this project

README

          

Simple inverted index code.

require 'inverted_index_rb'
index = InvertedIndexRb.new
index.index_file('doc1.txt')
index.index_file('doc2.txt')
puts index.query_and(['glad','us'])
puts index.query_or(['i','made'])