M
M
melnikov_m2019-02-15 18:44:39
Sphinx
melnikov_m, 2019-02-15 18:44:39

How to write data to Sphinx RT index in Yii2?

Good day, how to write data to Sphinx RT index on Yii2?
How to write data to rt-index understandably? there are a lot of articles on this, for example, here
But how to do it competently at the framework level? insert requests to write data to the rt-index in the afterSave() event of the Model?
What about possible related data? in general, are there, so to speak, proven solutions on this topic, or does everyone make their own bike? Ideally, of course, everything should be done through yii\sphinx\ActiveQuery ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2019-02-15
@webinar

There is an extension for this and there are docks for it:
https://github.com/yiisoft/yii2-sphinx/blob/master...

P
Puma Thailand, 2019-02-16
@opium

Write as usual write in mysql
There should be no related data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question