Giter VIP home page Giter VIP logo

searchme's Introduction

Intro

Searchme is a basic searching webapp using CherryPy framework and Xapian search engine. Requirements

  • Xapian 1.2.19
  • CherryPy 3.6
  • Python >= 2.4
  • Tornado 4.0.2

Overview

Searchme is a useless webapp. It's more like an example of using basics of xapian engine for searching and cherrypy as web framework.

Searchme allows you to:

  • upload your file on the server
  • search among all uploaded files
  • download a file matching your query

Get Started

  • Install Xapain:

$ sudo apt-get install python-xapian

$ sudo apt-get install libxapian-dev

  • Install CherryPy with pip:

$ sudo pip install cherrypy

  • Install Tornado with pip:

$ sudo pip install tornado

  • Start the server:

$ python server.py

Storing the files

For every uploaded file an md5 hash of file contents is calculated and the file gets name of that md5 hash and goes to /root/lib/hash[:2]/hash[2:4]/hash.txt

Example: md5 is 22db87278adec2c2b961e75e0faae593, file goes to /root/lib/22/db/22db87278adec2c2b961e75e0faae593.txt

searchme's People

Contributors

vladshablinsky avatar

Watchers

 avatar  avatar

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.