O
O
Oleg Kolesnikov2015-01-20 11:39:01
Sphinx
Oleg Kolesnikov, 2015-01-20 11:39:01

How to make multiple or/and in sphinx?

I can't find examples of how to combine multiple or/and in multiple columns,
for example

WHERE (`id` = 1 and `category` = 2) OR (`id` = 2 and `category` = 3)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
neol, 2015-01-20
@neol

SELECT id, ((`id` = 1 and `category` = 2) OR (`id` = 2 and `category` = 3)) AS cond 
WHERE cond > 0

habrahabr.ru/post/195918

D
Danila, 2017-07-23
@AleksKek

https://codepen.io/DNLHC/pen/YxKgzM

K
Kuzya, 2017-07-23
@N_kuzya

ul>li and remove the first one through ul li:firstchild

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question