note 114293 added to solrutils.queryphrase

From: Date: Mon, 03 Feb 2014 16:04:13 +0000
Subject: note 114293 added to solrutils.queryphrase
Groups: php.notes 
Request: Send a blank email to php-notes+get-198400@lists.php.net to get a copy of this message
Doing some tests it would appear that this function also sanitizes input(testing on version above 1.0). And the term "phrase" is not the same as a complete query like "FIELD:THE RIGHT HALF AFTER THE : IS THE PHRASE." So if you want to search SOME_FIELD:some value with an escape character like +, then you would have to write the code out: $query = 'SOME_FIELD:' . SolrUtils::queryPhrase('some value with an escape character like +'); That would properly escape it like: some value with an escape character like \+ FYI. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/solrutils.queryphrase.php Edit -- https://master.php.net/note/edit/114293 Del: integrated -- https://master.php.net/note/delete/114293/integrated Del: useless -- https://master.php.net/note/delete/114293/useless Del: bad code -- https://master.php.net/note/delete/114293/bad+code Del: spam -- https://master.php.net/note/delete/114293/spam Del: non-english -- https://master.php.net/note/delete/114293/non-english Del: in docs -- https://master.php.net/note/delete/114293/in+docs Del: other reasons-- https://master.php.net/note/delete/114293 Reject -- https://master.php.net/note/reject/114293 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198400) next »