Simple inverted index code
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib first commit Jul 7, 2011
test first commit Jul 7, 2011
README.md first commit Jul 7, 2011

README.md

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'])