This Application is an implementation of Elastic Search indexing algorithm which is designed to allow for fas full-text search. 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.
- Upload of JSON file in the format below
[
{
"title": "This is a sample title",
"text": "And this is a sample text"
}
]
- Indexing of uploaded file
- Searching of each indexed file
This can be accessed here.
It can be used locally with the following steps
- Clone this repository
git clone https://github.com/andela-aatanda/checkpoint1-inverted-index.git
- Move into the repository directory
cd checkpoint1-inverted-index
- Run npm install to install all dependencies (Node must be installed on your local machine already)
- connect
- gulp
- gulp-connect
- serve-static
npm install
- Start the application with
npm start
- Only files with
.json
extension can be indexed - Search is limited to one file at a time
- [Inverted Index - Wikipedia] (https://en.wikipedia.org/wiki/Inverted_index)
- Inverted Index