Oct 16 2010
- 04/10/2011 - Updated application.js and application.rb thanks to @rebo's comments
In this article, I will walk through some simple steps to get a [demo app][2] up and running with [Backbone.js][3] and [Sinatra][4] on [Heroku][5].
| <?php | |
| /** | |
| * Return query Filter from a list of query string & allowed Facets | |
| * | |
| * @param array $query The user query (facet_name => query, facet_name => query...) | |
| * @param array $allowed_facets An array of Elastica\Facet | |
| * | |
| * @return \Elastica\Filter\AbstractFilter (if multiple filters, they are combined in BoolAnd filter) | |
| */ | |
| private function getFacetsFilters($query, $allowed_facets) |
| #!/bin/bash | |
| db=$1 | |
| user=$2 | |
| passwd=$3 | |
| if [ "$db" = "" ]; then | |
| echo "Usage: $0 db_name user password" | |
| exit 1 | |
| fi | |
| clear | |
| for sql_file in *.sql; do |