summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/retry_stale_indexes.feature
blob: a14f43a38f27fb6186e377f38bd86f56517b2d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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