mehroosali / Information-Retrieval-Search-Engine

Search Engine project for Information Retrieval class.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Information Retrieval: Sweets Search Engine

Presentation

Project_Presentation.pptx

Prerequisites

Setup

In the project directory, run the following to install flask, flask_cors, pysolr, react:

npm install

pip install pysolr

pip install flask

pip install flask_cors

To run the backend code:

python backend.py

To run the frontend code:

npm start

React UI: http://localhost:3000
Backend API: http://localhost:5000/api

API Testing

Install Postman to test backend API.

API Params:

key value description
query e.g. "Chocolate Cake" This is the query string coming from front end UI which is used to query Solr to retrieve documents
rm "page_rank" or "hits" This is the selected relevance model option selected in the front end UI
co "flat" or "single" or "average" This is the selected clustering option selected in the front end UI
qe "association" or "metric" or "scalar" This is the selected query expansion option selected in the front end UI

About

Search Engine project for Information Retrieval class.


Languages

Language:Python 65.7%Language:JavaScript 21.3%Language:CSS 10.3%Language:HTML 2.7%