Git Product home page Git Product logo

roblysearch's Introduction

RoblySearch

A python based search engine, built using the flask micro framework. It stores all of its data in mongodb and uses Full Text Search to search for website information.

Requirements

  • Python 3.*
  • Flask
  • pymongo
  • roblyparser (already included in project)
  • stemming.porter2 (already included in project)
  • tldextract by John Kurkowski (already included in project)

Backend Features

  • Search Query Parser
  • Search Query Tokeniser
  • Search Query Stemming (Using the porter stemming algorithm)
  • Web Crawler
  • HTML tokenizer and parser (roblyparser)
  • Stemmer (Using the porter stemming algorithm)
  • Unit Tests

Frontend Features

  • Jinja2 Templates
  • Responsive design using pure css

MongoDB

Robly uses Full Text Search (FTS) when searching for information from websites. In order for this to work, you must start your MongoDB server with the normal command but also append the following to the end of the command:

--setParameter textSearchEnabled=true

If your MongoDB resides in MongoHQ's servers, you'll need to email their support team and ask them to enable Full Text Search for your database.

Installation

####Reqiuirements

  • Install Python 3.*
  • Install pip
  • Install pymongo: pip install pymongo
  • Install Flask: pip install Flask

####Get RoblySearch

git clone https://github.com/robbielynch/RoblySearch.git

####Change MongoDB Config Navigate to RoblySearch/robly_mongo/mongo_config.py

Change the mongo config variables to match that of your mongodb server:

DB_NAME = <<< YOUR_DB_NAME_STRING >>>
HOST = <<< YOUR_HOST_STRING >>> #Default is '127.0.0.1'
PORT = <<< YOUR_PORT_INTEGER >>> #Default is 27017
WEBSITE_COLLECTION = "websites"
USER_COLLECTION = "users"

####Run RoblySearch

cd RoblySearch
python webapp.py

RoblySearch should now be available at http://localhost:9200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.