Skip to content

thejaswinipathi/SearchEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This project is an API demonstration of a search engine, it just shows the backend functionality of API
  • So in the search function, we use our pre computed values, which has a list of words in the summary of a book, and the counts associated with each word. Whenever a API request is made, we use these pre computed word count, and the book's summary that matches with the most number of words will be shown in the matched order accordingly.
  • The searchEngine data can be prepopulated by calling populate_data method in scripts.py
  • A sample data of what we are expecting is in data.json
  • It serves two APIs, the first one given a query string and a maximum search limit, returns result in a JSON array API POST URL should be something like http://127.0.0.1:8000/book/getInfo/ body is as shown below
{
	"query": "i wish there is a change",
	"k":3
}
{
	"queries": ["my life change", "i love coding"],
	"k":3
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages