Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- SolrDisMaxQuery - setBoostFunction --FILE-- <?php $dismaxQuery = new SolrDisMaxQ..
Decoded Output download
--TEST--
SolrDisMaxQuery - setBoostFunction
--FILE--
<?php
$dismaxQuery = new SolrDisMaxQuery('lucene');
$boostRecentDocsFunction = "recip(ms(NOW,mydatefield),3.16e-11,1,1)";
$dismaxQuery->setBoostFunction($boostRecentDocsFunction);
echo $dismaxQuery.PHP_EOL;
?>
--EXPECTF--
q=lucene&defType=%s&bf=recip(ms(NOW,mydatefield),3.16e-11,1,1)
Did this file decode correctly?
Original Code
--TEST--
SolrDisMaxQuery - setBoostFunction
--FILE--
<?php
$dismaxQuery = new SolrDisMaxQuery('lucene');
$boostRecentDocsFunction = "recip(ms(NOW,mydatefield),3.16e-11,1,1)";
$dismaxQuery->setBoostFunction($boostRecentDocsFunction);
echo $dismaxQuery.PHP_EOL;
?>
--EXPECTF--
q=lucene&defType=%s&bf=recip(ms(NOW,mydatefield),3.16e-11,1,1)
Function Calls
None |
Stats
MD5 | f1b4abf4ba59e386c52125fac9e977b4 |
Eval Count | 0 |
Decode Time | 138 ms |