diff --git a/tests/unit/data/sphinx/sphinx.conf b/tests/unit/data/sphinx/sphinx.conf index 6be9606..30cf083 100644 --- a/tests/unit/data/sphinx/sphinx.conf +++ b/tests/unit/data/sphinx/sphinx.conf @@ -44,7 +44,8 @@ source yii2_test_item_src sql_query = \ SELECT *, CURRENT_TIMESTAMP() AS add_date \ - FROM yii2_test_item + FROM yii2_test_item \ + WHERE id <= 100 sql_attr_uint = id sql_attr_uint = category_id @@ -55,6 +56,15 @@ source yii2_test_item_src } +source yii2_test_item_delta_src : yii2_test_item_src +{ + sql_query = \ + SELECT *, CURRENT_TIMESTAMP() AS add_date \ + FROM yii2_test_item \ + WHERE id > 100 +} + + index yii2_test_article_index { source = yii2_test_article_src @@ -73,6 +83,13 @@ index yii2_test_item_index } +index yii2_test_item_delta_index : yii2_test_item_index +{ + source = yii2_test_item_delta_src + path = /var/lib/sphinx/yii2_test_item_delta +} + + index yii2_test_rt_index { type = rt