Skip to content
Browse files

Adjusted the default impact for location-proximity autosuggest

  • Loading branch information...
1 parent 3fc96e9 commit 16a3814cf252ba56ffebb9f0693fd2cbe83da049 @clintongormley committed Oct 14, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ElasticSearchX/Autocomplete/Type.pm
View
6 lib/ElasticSearchX/Autocomplete/Type.pm
@@ -253,9 +253,9 @@ sub _location_clause {
my $radius = $loc->{radius} || 1000;
my $exp = $loc->{exp} || 2;
- my $steps = $loc->{steps} || 4;
- my $boost = $loc->{boost} || 5;
- my $step = $boost / $steps;
+ my $steps = $loc->{steps} || 3;
+ my $boost = $loc->{boost} || 2;
+ my $step = ( $boost - 1 ) / $steps;
my @filters;
for ( reverse 0 .. $steps - 1 ) {

0 comments on commit 16a3814

Please sign in to comment.
Something went wrong with that request. Please try again.