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/retry_stale_indexes.feature | |
| parent | d3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff) | |
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature b/vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature new file mode 100644 index 0000000..a14f43a --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Feature: Manually updating Sphinx indexes to handle uncaught deletions | ||
| 2 | In order to keep indexes as up to date as possible | ||
| 3 | Thinking Sphinx | ||
| 4 | Should automatically update the indexes and retry the search if it gets a nil result | ||
| 5 | |||
| 6 | Scenario: Changing retry_stale settings | ||
| 7 | Given Sphinx is running | ||
| 8 | And I am searching on gammas | ||
| 9 | Then I should not get 0 results | ||
| 10 | |||
| 11 | When I set retry stale to false | ||
| 12 | And I set per page to 1 | ||
| 13 | And I order by "sphinx_internal_id ASC" | ||
| 14 | And I destroy gamma one without callbacks | ||
| 15 | Then I should get a single result of nil | ||
| 16 | |||
| 17 | When I set retry stale to 1 | ||
| 18 | Then I should get a single gamma result with a name of two | ||
| 19 | |||
| 20 | When I destroy gamma two without callbacks | ||
| 21 | Then I should get a single result of nil | ||
| 22 | |||
| 23 | When I set retry stale to true | ||
| 24 | Then I should get a single gamma result with a name of three | ||
