Sphinx test delta index added

This commit is contained in:
Paul Klimov
2013-11-18 16:12:59 +02:00
parent 01df011ea3
commit c355fed280

View File

@ -44,7 +44,8 @@ source yii2_test_item_src
sql_query = \ sql_query = \
SELECT *, CURRENT_TIMESTAMP() AS add_date \ SELECT *, CURRENT_TIMESTAMP() AS add_date \
FROM yii2_test_item FROM yii2_test_item \
WHERE id <= 100
sql_attr_uint = id sql_attr_uint = id
sql_attr_uint = category_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 index yii2_test_article_index
{ {
source = yii2_test_article_src 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 index yii2_test_rt_index
{ {
type = rt type = rt