K
K
Khurshed Abdujalil2017-04-07 15:19:04
Sphinx
Khurshed Abdujalil, 2017-04-07 15:19:04

How to make a query with a string condition in the sphinx?

SELECT * FROM `real_index` WHERE product_key = "adsadaddsasd" LIMIT 2'

gives an error syntax error, unexpected IDENT, expecting CONST_INT or CONST_FLOAT or '-' near
if you do product_key = 123123, everything is fine, that is, it requires a number in absolutely any request, even if you put some other field instead of product_key. for example title = "adsadaddsasd" and so on

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Khurshed Abdujalil, 2017-04-10
@akhur

solved the problem, installed a more recent version, and requests are executed correctly

P
Puma Thailand, 2017-04-07
@opium

You have a numeric key product, and there should be a match there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question