Skip to content

Commit

Permalink
Item14485: use text_prefix and text_suffix
Browse files Browse the repository at this point in the history
... in autosuggest widget
  • Loading branch information
MichaelDaum committed Sep 18, 2017
1 parent 6c3020c commit bac1cc5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Foswiki/Plugins/SolrPlugin/Search.pm
Expand Up @@ -667,9 +667,9 @@ sub restSOLRAUTOSUGGEST {
my $query = Foswiki::Func::getCgiQuery();

my $theQuery = $query->param('term') || '*';
unless ($theQuery =~ /[":\s\*]/) {
$theQuery .= "*";
}
# unless ($theQuery =~ /[":\s\*]/) {
# $theQuery .= "*";
# }

my $theRaw = Foswiki::Func::isTrue(scalar $query->param('raw'));

Expand Down Expand Up @@ -734,7 +734,8 @@ sub restSOLRAUTOSUGGEST {
"category_search",
"tag_search^0.5",
"catchall",
"substring",
"text_prefix",
"text_suffix",
"charnorm",
"phonetic",
],
Expand Down

0 comments on commit bac1cc5

Please sign in to comment.