diff options
| author | hukl <contact@smyck.org> | 2009-04-28 00:15:53 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-05-01 17:14:02 +0200 |
| commit | 4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch) | |
| tree | f4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/features/datetime_deltas.feature | |
| parent | d3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff) | |
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/datetime_deltas.feature')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/datetime_deltas.feature | 66 |
1 files changed, 66 insertions, 0 deletions
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 @@ | |||
| 1 | Feature: Datetime Delta Indexing | ||
| 2 | In order to have delta indexing on frequently-updated sites | ||
| 3 | Developers | ||
| 4 | Should be able to use an existing datetime column to track changes | ||
| 5 | |||
| 6 | Scenario: Delta Index should not fire automatically | ||
| 7 | Given Sphinx is running | ||
| 8 | And I am searching on thetas | ||
| 9 | When I search for one | ||
| 10 | Then I should get 1 result | ||
| 11 | |||
| 12 | When I change the name of theta one to eleven | ||
| 13 | And I wait for Sphinx to catch up | ||
| 14 | And I search for one | ||
| 15 | Then I should get 1 result | ||
| 16 | |||
| 17 | When I search for eleven | ||
| 18 | Then I should get 0 results | ||
| 19 | |||
| 20 | Scenario: Delta Index should fire when jobs are run | ||
| 21 | Given Sphinx is running | ||
| 22 | And I am searching on thetas | ||
| 23 | When I search for two | ||
| 24 | Then I should get 1 result | ||
| 25 | |||
| 26 | When I change the name of theta two to twelve | ||
| 27 | And I wait for Sphinx to catch up | ||
| 28 | And I search for twelve | ||
| 29 | Then I should get 0 results | ||
| 30 | |||
| 31 | When I index the theta datetime delta | ||
| 32 | And I wait for Sphinx to catch up | ||
| 33 | And I search for twelve | ||
| 34 | Then I should get 1 result | ||
| 35 | |||
| 36 | When I search for two | ||
| 37 | Then I should get 0 results | ||
| 38 | |||
| 39 | Scenario: New records should be merged into the core index | ||
| 40 | Given Sphinx is running | ||
| 41 | And I am searching on thetas | ||
| 42 | When I search for thirteen | ||
| 43 | Then I should get 0 results | ||
| 44 | |||
| 45 | When I create a new theta named thirteen | ||
| 46 | And I search for thirteen | ||
| 47 | Then I should get 0 results | ||
| 48 | |||
| 49 | When I index the theta datetime delta | ||
| 50 | And I wait for Sphinx to catch up | ||
| 51 | And I search for thirteen | ||
| 52 | Then I should get 1 result | ||
| 53 | |||
| 54 | When I search for the document id of theta thirteen in the theta_core index | ||
| 55 | Then it should exist | ||
| 56 | |||
| 57 | Scenario: Deleting records | ||
| 58 | Given Sphinx is running | ||
| 59 | And I am searching on thetas | ||
| 60 | When I search for three | ||
| 61 | Then I should get 1 result | ||
| 62 | |||
| 63 | When I delete the theta named three | ||
| 64 | And I wait for Sphinx to catch up | ||
| 65 | And I search for three | ||
| 66 | Then I should get 0 results | ||
