S
S
Sergey Sergeev2020-03-14 16:24:35
Sphinx
Sergey Sergeev, 2020-03-14 16:24:35

How to use OR operator in sphinx?

Using sngrl\SphinxSearch I need $sphinx->search() to find two occurrences
For example $sphinx->search(''Test 1' OR 'TEST 2'') how can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManticoreSearch, 2020-03-19
@alokazay

Try
$sphinx->search('(Test 1) | (TEST 2)')

P
Puma Thailand, 2020-03-15
@opium

Use sphinxcl and write normal sql queries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question