InterNations / SolrUtils

Solr/Lucene utilities for PHP

Home Page:http://www.internations.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SolrUtils

Test

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

About

Solr/Lucene utilities for PHP

http://www.internations.org


Languages

Language:PHP 100.0%