Skip to content

Commit

Permalink
Merge pull request #1919 from alierak/sphinx_already_utf8
Browse files Browse the repository at this point in the history
use dummy encoders for sphinx, strings are already utf8
  • Loading branch information
zorkian committed Dec 28, 2016
2 parents 7d5dcb2 + 6a78f41 commit bdde64d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/worker/sphinx-search-gm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ sub _run_search {
my $index = '*';
$sx->SetServer( @LJ::SPHINX_SEARCHD );

$sx->SetEncoders( sub { shift }, sub { shift } );

$sx->SetMatchMode( SPH_MATCH_ALL )
->SetSortMode( SPH_SORT_RELEVANCE )
->SetMaxQueryTime( 15_000 )
Expand Down

0 comments on commit bdde64d

Please sign in to comment.