manticoresoftware / manticoresoftware/manticoresearch-php
Metod match('word word2') generate query type AND
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 211
- Forks
- 39
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 1
Description
In documentation OR as default operator
I try profile()->match('word word2') and i see :
[query] => Array
(
[type] => AND
[description] => AND( AND( AND(KEYWORD(word, querypos=1)), AND(KEYWORD(word2, querypos=2))), OR( AND(KEYWORD(word, querypos=1)), AND(KEYWORD(word2, querypos=2))))....
if i set
->math(['query' => 'word word2', 'operator' => 'or'])
has no effect.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the PHP client's profile()->match() entry point and reproduce the documented match('word word2') example with the default operator and with operator set to 'or'. Trace the generated query array and confirm that the completed behavior uses the requested operator rather than producing the duplicated AND structure shown in the report.
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
- 48/100