GithubHelp home page GithubHelp logo

hhy5277 / node-search-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kurokikaze/node-search-engine

0.0 1.0 0.0 2.66 MB

Sample search engine with web crawler, built on Node.js + CouchDB + Limestone

Home Page: http://kuroikaze85.wordpress.com

JavaScript 98.78% HTML 1.22%

node-search-engine's Introduction

This is a really simple search engine, built with:

  • node.js
  • Sphinx search server
  • CouchDB
  • Express web framework

Right now it uses Node.js v0.1.90 (process.mixin is the only thing that won't work in 0.1.91 though).

Usage

First, you need to setup host to crawl in settings.js. Right now it's finalfantasy.wikia.com. You also need CouchDB installed, and at least one database. Put database name and host into settings.js. You need to install Sphinx server from http://www.sphinxsearch.com .

Indexing

Run:

node spider.js

Spider starts crawling pages and putting them into DB.

To index crawled pages with Sphinx, enter node /path/to/xmlpipe2.js in sphinx.conf as xmlpipe2 source. To index newly created source right now, start indexer manually:

indexer <sourcename>

Searching

To start site, launch

node app.js

Site will be available at port 8000. Enter search terms in form and submit it.

node-search-engine's People

Contributors

claudehohl avatar kurokikaze avatar

Watchers

 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.