Solr/Lucene utilities for PHP
PHP
Latest commit dfb828d Feb 19, 2017 @lstrojny lstrojny Allow hhvm failures
Permalink
Failed to load latest commit information.
build Initial commit. Splitted from internations/solr-query-component Apr 3, 2013
src/InterNations/Component/Solr
tests/InterNations/Component/Solr/Tests
.gitignore Fix build Jan 11, 2015
.travis.yml
README.md
build.xml
composer.json
phpunit.xml.dist

README.md

SolrUtils

Gitter Build Status Dependency Status Average time to resolve an issue Percentage of issues still open

SolrUtils help with recurring tasks when working with Solr like escaping and sanitizing user input.

use InterNations\Component\Solr\Expression\Expression\Util;

// Quote a string to be used in a query
Util::quote('(term)'); // "\(term\)"

// Escape a string but not quote it
Util::escape('(term)'); // \(term\)

// Sanitize a string to be used safely in a query
Util::sanitize('term'); // term