Skip to content

Commit

Permalink
Merge pull request #3425 from 10up/feature/2089
Browse files Browse the repository at this point in the history
Feature: Did you mean
  • Loading branch information
felipeelia authored Jun 7, 2023
2 parents 7e7f55e + 7a3db9a commit 8c627a8
Show file tree
Hide file tree
Showing 6 changed files with 807 additions and 1 deletion.
4 changes: 4 additions & 0 deletions elasticpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ function register_indexable_posts() {
new Feature\Autosuggest\Autosuggest()
);

Features::factory()->register_feature(
new Feature\DidYouMean\DidYouMean()
);

Features::factory()->register_feature(
new Feature\WooCommerce\WooCommerce()
);
Expand Down
1 change: 1 addition & 0 deletions includes/classes/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ public function query( $index, $type, $query, $query_args, $query_object = null
'found_documents' => $total_hits,
'documents' => $documents,
'aggregations' => $response['aggregations'] ?? [],
'suggest' => $response['suggest'] ?? [],
],
$response,
$query,
Expand Down
Loading

0 comments on commit 8c627a8

Please sign in to comment.