Skip to content

jbarroso/solritajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9c0113f · Sep 9, 2018

History

32 Commits
Feb 13, 2013
Feb 13, 2013
May 22, 2013
Feb 13, 2013
Nov 11, 2012
Nov 8, 2012
Nov 8, 2012
Nov 8, 2012
Nov 22, 2012
Nov 25, 2012
Jan 9, 2015
Sep 8, 2018
Jan 9, 2015

Repository files navigation

Solrita.js

A Backbone.js client for Apache Solr.

Demo

http://solritajs.herokuapp.com/

This demo is also using a Solr server deployed to Heroku with the sample schema and data (computer components, screens, etc.) that are included in the Solr tutorial.

You can also run it by yourself using Backbone Boilerplate framework tool: grunt-bbb and with your own Solr server (app.js includes all the configuration options).

Features / Overview

Based on the VelocityResponseWriter (aka Solritas) but 100% made with javascript. It is my first open source project in Github and also with these fantastic new javascript libraries!

My goal is cover all all the features that Solritas has but for the moment I have:

  • The simple main search form.
  • Pagination, sorting, choose number of results per page.
  • Facet Fields column.
  • Filter by a Facet field value.
  • Highlighting search string in all the fields (even in multivalued fields).

All the actions go through the Backbone’s Router so the URL’s are good and bookmarkable.

I am also playing with Twitter’s Bootstrap and responsive design.

Stack

Release HIstory

  • 0.1 working!

TODO

  • Feature request by claushjuhl
  • Suggest in search form.
  • Collapsable result list with options to choose between large/short view format.
  • Add facet filters links in result values.
  • i18n messages
  • Change templates to Handlebars.
  • Make it configurable to fit any solr schema (facet fields, field names and types).
  • Show/HIde facet filters and save them in HTML5 local storage.
  • Improve code coverage.
  • Make it work with node.js when javascript is disable (this also would allow to have results SEO friendly)
  • Remove dist directory from github (first I have to deploy in heroku with bbb command).
  • … any ideas?

Licence

Copyright (c) 2012 Jose Angel Barroso. Licensed under the MIT license.