mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
Sphinx test delta index added
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user