Giter Site home page Giter Site logo

sunspottest's Introduction

Rails Sunspot test project

This is my personal test of Sunspot to get familiar with SOLR. I have previously used pg_search, a Rails Gem that provides full-text search with PostgreSQL.

The project currently runs on a development server.

Goals

  • Create Rake task to input data from Leipzig Corpora Collection
  • Build basic search engine with highlighting and pagination
  • Explore how Solr handles indexing of different languages (e.g. English, German, French, Russian)

Rake task

rake read_corpus reads a specified file (txt format) and saves it to the Rails database.

Linguistic search

It is interesting to do a search for help and see that Solr also finds results such as helped, helps and helping. In the default (simplest) configuration of SOLR, apparently no stemming is used to achieve this result.

The next step is to explore the advanced configuration as described here.

TO DO

  • Deploy SOLR on a production server
  • Benchmark indexing by SOLR with a larger data set, e.g. 1M sentences

SOLR server

  • Start with bundle exec rake sunspot:solr:start
  • Access at http://localhost:8982/

sunspottest's People

Contributors

garbo999 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.