Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Remove fuzzy search and upgrade elastica to 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Oct 12, 2017
1 parent a673005 commit f9102fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/index.elasticsearch/composer.json
Expand Up @@ -8,6 +8,6 @@
}
},
"require":{
"ruflin/elastica" : "3.2"
"ruflin/elastica" : "5.3.0"
}
}
Expand Up @@ -187,7 +187,6 @@ public function applyAction(\Psr\Http\Message\ServerRequestInterface $requestInt
$this->currentIndex->open();
$fieldQuery = new Elastica\Query\QueryString();
$fieldQuery->setAllowLeadingWildcard(true);
$fieldQuery->setFuzzyMinSim(0.8);

if($textQuery == "*"){

Expand Down Expand Up @@ -307,8 +306,6 @@ public function applyAction(\Psr\Http\Message\ServerRequestInterface $requestInt

$fieldQuery->setFields($fields);
$fieldQuery->setAllowLeadingWildcard(false);
$fieldQuery->setFuzzyMinSim(0.8);


$search = new Elastica\Search($this->client);
$search->addIndex($this->currentIndex)->addType($this->currentType);
Expand Down

0 comments on commit f9102fa

Please sign in to comment.