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/retry_stale_indexes.feature | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature (limited to 'vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature') 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 00000000..a14f43a3 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature @@ -0,0 +1,24 @@ +Feature: Manually updating Sphinx indexes to handle uncaught deletions + In order to keep indexes as up to date as possible + Thinking Sphinx + Should automatically update the indexes and retry the search if it gets a nil result + + Scenario: Changing retry_stale settings + Given Sphinx is running + And I am searching on gammas + Then I should not get 0 results + + When I set retry stale to false + And I set per page to 1 + And I order by "sphinx_internal_id ASC" + And I destroy gamma one without callbacks + Then I should get a single result of nil + + When I set retry stale to 1 + Then I should get a single gamma result with a name of two + + When I destroy gamma two without callbacks + Then I should get a single result of nil + + When I set retry stale to true + Then I should get a single gamma result with a name of three -- cgit v1.3