An inverted index consists of a list of all the unique words that appear in any document, and for each word, a list of the documents in which it appears.
Inverted index object that takes a JSON array of text objects and creates an index from the array. The index allows a user to search for text blocks in the array that contain a specified collection of words.
The purpose of an inverted index is to allow user perform fast and full text search
- Clone the repository
git clone https://github.com/andela-hchukwu/Inverted-Index.git
- Run
npm install
to install all dependencies. - To run test, run
npm test
- To use inverted index, run
npm start
and go tolocalhost://5000
- Upload your file(s), here is a sample file.
- Select a file from the uploaded files and click on create index to get an index of the selected file.
- To search the created index of a file, select file and enter the word(s) you want to search in the search box.
- Click on search to see your result, the result table does not display if none of the searched word(s) is not in the index created.
- Create indices from uploaded file.
- Find the indexes for a particular file.
- Allows single/multiple JSON files upload
- Search created index.
- You can view the application here
Written in Javascript es6 syntax and nodejs on the backend, with the followinng:
- Jasmine (Test runner)
- Gulp (Task runner)
- Angular js (Frontend views)
- Travic CI (Continious Integration)
- Coveralls (Test coverage percentage)
- Hound CI (Check for style violations)
- HTML/CSS (Frontend)
- Clone the repository.
- Create a new branch for included feature(s).
- Raise a pull request.