Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CQL parser for ruby

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 website
Octocat-spinner-32 .document
Octocat-spinner-32 Gemfile
Octocat-spinner-32 History.txt
Octocat-spinner-32 License.txt
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 cql-ruby.gemspec


cql-ruby provides a common querly language (CQL) parser. CQL is a format frequently used in the library world. This parser was translated from the CQL-Java parser written by Mike Taylor available here

The parser builds a CQL parse tree suitable to serializing to various forms, built in are to_cql, to_xcql and to_solr (build a solr-lucene search query from cql)


sudo gem install cql_ruby

The basics

You have been asked to provide SRU access to your website, so that the dynamic and exciting library community can find and promote access to and awareness of your rich content. You discover that in order to support SRU, dang! you need a CQL parser. Well now you have one.

Demonstration of usage

require 'cql_ruby' parser = puts parser.parse( 'dog and cat' ).to_solr




This code is free to use under the terms of the LGPL license.


Comments are welcome. Best way to send them is to via the listserv

Chick Markley, from 9th April 2008 Jonathan Rochkind, from 14 June 2010

Something went wrong with that request. Please try again.