Skip to content

Commit 7861721

Browse files
committed
renamed Brackets to Braces, expanded explanation of difference of this packag to ezc
1 parent a2e5562 commit 7861721

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README

+2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ http://svn.ezcomponents.org/viewvc.cgi/trunk/Search/src/
33

44
license: http://ez.no/licenses/new_bsd New BSD License
55

6+
The main difference is that this set of classes makes it possible to hook in totally different serialization formats for the generated queries. Furthermore the parser has been expanded to also support backslash escape chars, brace support is optional and the parser itself is extensible.
7+
68
This all might be merged back into ezcSearch eventually, needs unit testing etc.
79
I developed this to parse solr queries for resolutionfinder.org and construct queries against apache solr

examples/custom.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
// #2
3131
//$q = '"security council" -foo:(bar OR doing OR lala)';
3232
$q = '(bar OR doing)';
33-
require '../phpSolrQueryParserBrackets.php';
34-
$parser = new phpSolrQueryParserBrackets($factory);
33+
require '../phpSolrQueryParserBraces.php';
34+
$parser = new phpSolrQueryParserBraces($factory);
3535

3636
$tokens = $parser->parse($q);
3737
$terms = $parser->processTerms($tokens);

phpSolrQueryParserBrackets.php renamed to phpSolrQueryParserBraces.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @license http://ez.no/licenses/new_bsd New BSD License
88
*/
9-
class phpSolrQueryParserBrackets extends phpSolrQueryParser
9+
class phpSolrQueryParserBraces extends phpSolrQueryParser
1010
{
1111
public function processToken($token)
1212
{

0 commit comments

Comments
 (0)