Solr/Lucene utilities for PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
src/InterNations/Component/Solr
tests/InterNations/Component/Solr/Tests
.gitignore
.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