// 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); // Create an Options object (passing the REST client object) $term = new MLPHP\Term('no-results'); // Create an Term object $term->setTermOptions(array('diacritic-insensitive', 'unwildcarded'));