G
G
gibigate2015-11-13 13:09:41
Sphinx
gibigate, 2015-11-13 13:09:41

Sphinx: how to index an array?

There is such a database model:
item :
-item_id
-title
-desk
-other
There is another table:
item_types:
-item_type_id
-item_id
-views
-clicks
and there can be a lot of data in the second table with the same item_id
There is a query on the sphinx: find posts by title (item:title) and sort them by views (clicks or clicks/views) where item_type_id = 1(let's say)
Question: How can you store item_types?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-11-13
@opium

Do it in two requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question