add index settings support

This commit is contained in:
ghost 2023-11-25 16:01:46 +02:00
parent 4aadb7f642
commit 192e45103d
8 changed files with 41 additions and 16 deletions

View file

@ -32,7 +32,7 @@ $client = new \Manticoresearch\Client(
// Init index
$index = $client->index(
$config->manticore->index->document
$config->manticore->index->document->name
);
// Get totals
@ -120,7 +120,7 @@ if (filter_var($q, FILTER_VALIDATE_URL))
$query = '@url "' . $q . '"';
}
if (false === strpos($q, '"'))
elseif (false === strpos($q, '"'))
{
$query = '"' . $q . '"';
}