From c355fed2804ebb459c63cec4cee3198d01a94414 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Mon, 18 Nov 2013 16:12:59 +0200 Subject: [PATCH] Sphinx test delta index added --- tests/unit/data/sphinx/sphinx.conf | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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