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
- Host: GitHub
- URL: https://github.com/willf/inverted_index_simple
- Owner: willf
- Created: 2011-07-07T03:04:22.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-07-07T03:10:43.000Z (almost 15 years ago)
- Last Synced: 2025-03-24T12:52:25.471Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'])