manticoresoftware / manticoresoftware/manticoresearch-php
suggest не работает
- Dominant language
- PHP
- Stars
- 211
- Forks
- 39
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 1
Description
```
$config = ['host'=>'manticore','port'=>9308]
$client = new Client($config);
$suggest = $client->index('suggest');
$suggest->create([
'explanation' => [
'type' => 'text',
],
],
[
'min_infix_len' => 1,
'dict' => 'keywords',
]);
$suggest->addDocument([
'explanation' => 'Автобус',
]);
```
затем:
```
$query = [
'index' => 'suggest',
'body' => [
'query' => 'овтобус',
'options' => [
'limit' => 1,
],
],
];
$r = $client->suggest($query);
```
Результат пустой
Contributor guide
No contributing guide indexed for this repository
Research direction
No source files or tests are named. Start by reproducing the PHP create, addDocument, and suggest calls from the issue, then trace the client's suggest implementation and existing search-related tests. Done means determining why the typo query returns no result and adding a verified fix or a clear documented limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100