Logo: Relish

  1. Sign in

Project: Blacklight

Did You Mean

  • @did_you_mean

As a user
In order to get great search results
I want to get "did you mean" suggestions for poor queries

Scenarios
All Fields search - No Results with spelling suggestion
When
I am on the home page
And
I fill in "q" with "politica"
And
I select "All Fields" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "policy"
Then
I should get results
Title search - No Results with spelling suggestion
When
I am on the home page
And
I fill in "q" with "yehudiyam"
And
I select "Title" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "yehudiyim"
Then
I should get results
Author search - No Results with spelling suggestion
When
I am on the home page
And
I fill in "q" with "shirma"
And
I select "Author" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "sharma"
Then
I should get results
Subject search - No Results with spelling suggestion
When
I am on the home page
And
I fill in "q" with "wome"
And
I select "Subject" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "women"
Then
I should get results
No Results - and no close spelling suggestions
When
I am on the home page
And
I fill in "q" with "ooofda ooofda"
And
I press "search"
Then
I should not see "Did you mean"
When
I am on the home page
And
I fill in "q" with "politica boo"
And
I select "All Fields" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "policy"
Then
I should get results
No Results - multiword query
When
I am on the home page
And
I fill in "q" with "politica boo"
And
I select "All Fields" from "search_field"
And
I press "search"
Then
I should see "Did you mean"
When
I follow "bon"
Then
I should get results
Too many results for spelling suggestion
Given
I am on the home page
And
I fill in "q" with "histori"
And
I press "search"
Then
I should not see "Did you mean"
Exact Threshold number of results for spelling suggestion
Given
I am on the home page
And
I fill in "q" with "polit"
And
I press "search"
Then
I should see "Did you mean"
Same number of results as spelling suggestion
Given
I am on the home page
And
I fill in "q" with "den"
And
I press "search"
Then
I should not see "Did you mean"
Given
I am on the home page
And
I fill in "q" with "politica boo"
And
I press "search"
Then
I should see "Did you mean"
And
I should see "policy"
And
I should see "bon"
And
I should not see "policy bon"
Repeated terms should only give a single suggestion
Given
I am on the home page
And
I fill in "q" with "boo boo"
And
I press "search"
Then
I should see "Did you mean"
And
I should see "bon"
And
I should not see "bon bon"

Last published about 5 years ago by jronallo.