Coder Social home page Coder Social logo

beersite's Introduction

WARNING: This project is no longer supported

The source data for this project is no longer available.

Since this is an example against a version of Solr that is three major versions out of date, I will not be maintaining this example.

Please feel free to refer to the solrcloudpy project -- specifically the test library -- for examples of interactions with a modern solr deployment.

BeerSite

An example use case for Apache Solr

This is an example Django site that allows us to better understand how to work with Solr. It is indended to be an accompaniment to the screencast collection Getting Started with Apache Solr Search Server, to be distributed by Packt Publishing.

An advanced branch includes commits outlining how to include:

  • spellcheck
  • grouped results
  • match highlighting
  • the MoreLikeThis request handler

Requirements

How To Use

  • Make sure you have your requirements installed
  • Copy the schema file in the solrFiles folder to apache-solr/example/solr/conf/schema.xml (it's optimal to do this from a fresh unzip)
  • Start or restart your solr instance ("java -jar start.jar" from apache-solr/example)
  • Call "python importBeer.py" from the BeerSite project root directory
  • From the BeerSite project root directory, call "python manage.py runserver 8080"
  • Navigate to localhost:8080 in your web browser. You should be ready to search!

Homeworks

  • Introduce Filter Queries
  • Add an optional parameter to the search view function for brewer_name filter query
  • Implement brewer name filter query when querying solr
  • Deliver data to view in such a way that filtering between brewers for the same search term only requires clicking
  • Add ABV
  • Update the Schema File to Include ABV
  • Update the ETL script to add ABV data
  • Display ABV in each search result
  • Add option to sort by relevance, weakest (ABV ascending) and strongest (ABV descending)

beersite's People

Contributors

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