From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- .../features/datetime_deltas.feature | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/datetime_deltas.feature (limited to 'vendor/plugins/thinking-sphinx/features/datetime_deltas.feature') diff --git a/vendor/plugins/thinking-sphinx/features/datetime_deltas.feature b/vendor/plugins/thinking-sphinx/features/datetime_deltas.feature new file mode 100644 index 0000000..8039c28 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/datetime_deltas.feature @@ -0,0 +1,66 @@ +Feature: Datetime Delta Indexing + In order to have delta indexing on frequently-updated sites + Developers + Should be able to use an existing datetime column to track changes + + Scenario: Delta Index should not fire automatically + Given Sphinx is running + And I am searching on thetas + When I search for one + Then I should get 1 result + + When I change the name of theta one to eleven + And I wait for Sphinx to catch up + And I search for one + Then I should get 1 result + + When I search for eleven + Then I should get 0 results + + Scenario: Delta Index should fire when jobs are run + Given Sphinx is running + And I am searching on thetas + When I search for two + Then I should get 1 result + + When I change the name of theta two to twelve + And I wait for Sphinx to catch up + And I search for twelve + Then I should get 0 results + + When I index the theta datetime delta + And I wait for Sphinx to catch up + And I search for twelve + Then I should get 1 result + + When I search for two + Then I should get 0 results + + Scenario: New records should be merged into the core index + Given Sphinx is running + And I am searching on thetas + When I search for thirteen + Then I should get 0 results + + When I create a new theta named thirteen + And I search for thirteen + Then I should get 0 results + + When I index the theta datetime delta + And I wait for Sphinx to catch up + And I search for thirteen + Then I should get 1 result + + When I search for the document id of theta thirteen in the theta_core index + Then it should exist + + Scenario: Deleting records + Given Sphinx is running + And I am searching on thetas + When I search for three + Then I should get 1 result + + When I delete the theta named three + And I wait for Sphinx to catch up + And I search for three + Then I should get 0 results -- cgit v1.3