function testReturnQtext() { parent::$logger->debug('testReturnQtext'); $options = new MLPHP\Options(parent::$client, 'testReturnQtext'); // Default is true so set false and check $options->setReturnQtext('false')->write(); $search = new MLPHP\Search(parent::$client, 1, 1); $results = $search->retrieve('act', array('options' => 'testReturnQtext')); $this->assertNull($results->getQtext()); }
// Read the options from the database and display echo "Various options:\n\n"; echo htmlspecialchars($options7->read('options7')); echo "\n\n"; // More options $options8 = new MLPHP\Options($client); // Create an Options object (passing the REST client object) $options8->setReturnConstraints('true'); // Return constraints $options8->setReturnFacets('false'); // Return facets $options8->setReturnMetrics('true'); // Return metrics $options8->setReturnPlan('false'); // Return the plan $options8->setReturnQtext('true'); // Return the qtext $options8->setReturnQuery('false'); // Return the query $options8->setReturnResults('true'); // Return results $options8->setReturnSimilar('false'); // Return similar documents $options8->write('options8'); // Write the search options to the database echo "More options:\n\n"; // Read the options from the database and display echo htmlspecialchars($options8->read('options8')); echo "\n\n"; // Term element $options9 = new MLPHP\Options($client);