diff --git a/PropertySuggester.php b/PropertySuggester.php index 619ea51..9abbd30 100644 --- a/PropertySuggester.php +++ b/PropertySuggester.php @@ -9,7 +9,7 @@ return; } -define( 'PropertySuggester_VERSION', '2.0.1' ); +define( 'PropertySuggester_VERSION', '2.0.2' ); if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { require_once __DIR__ . '/vendor/autoload.php'; diff --git a/README.md b/README.md index 01b756e..ccd0655 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ generate this data from a wikidata dump. ## Release notes +### 2.0.2 (2014-12-17) +* Fix TermIndex method call in ResultBuilder + ### 2.0.1 (2014-11-11) Adjust to new version of DataModel-JavaScript diff --git a/src/PropertySuggester/ResultBuilder.php b/src/PropertySuggester/ResultBuilder.php index 2d42523..22245a8 100644 --- a/src/PropertySuggester/ResultBuilder.php +++ b/src/PropertySuggester/ResultBuilder.php @@ -65,7 +65,12 @@ public function createResultArray( array $suggestions, $language ) { $ids[] = $id; } //See SearchEntities - $terms = $this->termIndex->getTermsOfEntities( $ids, 'property', $language ); + $terms = $this->termIndex->getTermsOfEntities( + $ids, + 'property', + null, + array( $language ) + ); $clusteredTerms = $this->clusterTerms( $terms ); foreach ( $suggestions as $suggestion ) {