Skip to content

Commit

Permalink
Merge pull request #3051 from 10up/chore/add-search-algo-descriptions
Browse files Browse the repository at this point in the history
Add proper descriptions to search algorithms
  • Loading branch information
felipeelia authored Oct 10, 2022
2 parents 08209d7 + 18480af commit befd1c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/classes/SearchAlgorithm/DefaultAlgorithm.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function get_name() : string {
* @return string
*/
public function get_description() : string {
return esc_html__( 'Default', 'elasticpress' );
return esc_html__( 'Use a fuzzy match approach which includes results that have misspellings, and also includes matches on only some of the words in the search.', 'elasticpress' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/SearchAlgorithm/Version_350.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function get_name() : string {
* @return string
*/
public function get_description() : string {
return esc_html__( 'Version 3.5', 'elasticpress' );
return esc_html__( 'Search for the existence of all words in the search first, then return results based on how closely those words appear.', 'elasticpress' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/SearchAlgorithm/Version_400.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function get_name() : string {
* @return string
*/
public function get_description() : string {
return esc_html__( 'Version 4.0', 'elasticpress' );
return esc_html__( 'Search for all search terms in one field first, then prioritize them over search terms matched in different fields.', 'elasticpress' );
}

/**
Expand Down

0 comments on commit befd1c7

Please sign in to comment.