K
K
Ken Jee2020-01-25 15:13:16
Sphinx
Ken Jee, 2020-01-25 15:13:16

How to select all empty values ​​of sql_attr_multi attribute in Sphinx if it is set as uint?

The Sphinx index has an attribute sql_attr_multi uint , which for some records contains a set of numbers, as expected, and for other records it is empty. How to correctly compose a query to get records/rows for which sql_attr_multi uint is empty?

The following is a query that throws an unsupported filter type null on MVA column error :

SELECT * FROM myIndexSphinx WHERE myAttrMultiUint IS NULL;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-01-27
@Machez

Check for length .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question