internations / solr-utils
Solr/Lucene utilities for PHP
Installs: 294 015
Dependents: 1
Suggesters: 2
Security: 0
Stars: 8
Watchers: 33
Forks: 2
Open Issues: 1
Requires
- php: >=7.4
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-29 03:53:00 UTC
README
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