blob: 8039c2849db8e2d3a3db64c39da8661f752ca904 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
|