S
S
Sergey Cherepanov2013-10-25 18:28:03
Sphinx
Sergey Cherepanov, 2013-10-25 18:28:03

Sphinx SE screw table with @count filter options

Hello to all residents of Habr!

I'm trying to set up a sphinx module for mysql so that I can join to it in the future.

I have the following query for counting the number of multi attribute options:

SELECT *, COUNT(*) as cnt FROM productIndex WHERE MATCH('') GROUP BY color_id ORDER BY cnt DESC LIMIT 0,100;


It outputs something like this:
image

And I can't figure out how to get the exact same result in mysql. That is, so that it would be possible to join @ count by color_id

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Cherepanov, 2013-10-25
@fear86

I already read in the documentation that you can bandage a column if you specify the prefix `_sph_` instead of a dog, that is, `_sph_count`.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question