Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggest не работает #65

Open
hrustbb2 opened this issue Oct 30, 2021 · 1 comment
Open

suggest не работает #65

hrustbb2 opened this issue Oct 30, 2021 · 1 comment
Labels
bug Something isn't working waiting for reply

Comments

@hrustbb2
Copy link

hrustbb2 commented Oct 30, 2021

$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);  

Результат пустой

@githubmanticore githubmanticore added the bug Something isn't working label Jun 29, 2022
@Nick-S-2018
Copy link
Collaborator

Can you please specify what versions of Manticore and the client you used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for reply
Projects
None yet
Development

No branches or pull requests

3 participants