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 --- .../thinking-sphinx/features/facets.feature | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/facets.feature (limited to 'vendor/plugins/thinking-sphinx/features/facets.feature') diff --git a/vendor/plugins/thinking-sphinx/features/facets.feature b/vendor/plugins/thinking-sphinx/features/facets.feature new file mode 100644 index 0000000..8788ab4 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/facets.feature @@ -0,0 +1,46 @@ +Feature: Search and browse models by their defined facets + + Scenario: Requesting facets + Given Sphinx is running + And I am searching on developers + When I am requesting facet results + Then I should have valid facet results + And I should have 5 facets + And I should have the facet State + And I should have the facet Country + And I should have the facet Age + And I should have the facet City + And I should have the facet Tag Ids + + Scenario: Requesting facet results + Given Sphinx is running + And I am searching on developers + When I am requesting facet results + And I drill down where Country is Australia + Then I should get 11 results + + Scenario: Requesting facet results by multiple facets + Given Sphinx is running + And I am searching on developers + When I am requesting facet results + And I drill down where Country is Australia and Age is 30 + Then I should get 4 results + + Scenario: Requesting facets with classes included + Given Sphinx is running + And I am searching on developers + When I am requesting facet results + And I want classes included + Then I should have valid facet results + And I should have 6 facets + And I should have the facet Class + + Scenario: Requesting MVA facets + Given Sphinx is running + And I am searching on developers + When I am requesting facet results + And I drill down where tag_ids includes the id of tag Australia + Then I should get 11 results + When I am requesting facet results + And I drill down where tag_ids includes the id of tags Melbourne or Sydney + Then I should get 5 results -- cgit v1.3