manticoresoftware / manticoresoftware/manticoresearch-php

Method search doesn't work

Open
#249 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug waiting
Dominant language
PHP
Stars
211
Forks
39
Avg merge
1d 20h
Merged PRs (30d)
1

Description

### Bug Description:

Настройка клиента и запрос:
```php
$this->client = new Client(
[
'host' => Config::get('manticore_search.connections.manticore.host'),
'port' => Config::get('manticore_search.connections.manticore.port')
]
);
$table = $this->client->table('b2b_products');
$table->search('phrase');
```

Ошибка: ""\"index\" property missing""
```json
#file: "
/var/www/btobgroup/proj/BToB/vendor
/manticoresoftware/manticoresearch-php/
src/Manticoresearch/Transport/Http.php
"
#line: 147
#request:
Manticoresearch\Endpoints
\
Search
{#1443
#path: null
#method: null
#body: array:2 [
"table" => "b2b_products"
"query" => array:1 [
"bool" => array:1 [
"must" => array:1 [
0 => array:1 [
"query_string" => "phrase"
]
]
]
]
]
#query: []
#contentType: "application/json"
}
```

### Manticore Search Version:

13.2.3

### Client Version:

4.0.1

### Have you tried the latest development version of Manticore Search and the client?

Yes

### Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

- [ ] Implementation completed
- [ ] Tests developed
- [ ] Documentation updated
- [ ] Documentation reviewed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the PHP client setup with table('b2b_products')->search('phrase') and inspect src/Manticoresearch/Transport/Http.php around line 147, where the reported error occurs. Trace the generated Manticoresearch\Endpoints\Search request and determine what behavior the issue expects; done means the search request succeeds without the reported missing-property error and has a regression test.

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
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.