Skip to content

Commit

Permalink
Add MatchQuery class for forward compat
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Feb 11, 2021
1 parent 8c2123c commit f48e238
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Elastica/Query/Match.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @author F21
* @author WONG Wing Lun <luiges90@gmail.com>
*
* @deprecated since version 6.1.2, use the MatchQuery class instead.
*
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html
*/
class Match extends AbstractQuery
Expand Down
11 changes: 11 additions & 0 deletions lib/Elastica/Query/MatchQuery.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Elastica\Query;

/**
* Match query.
*
* This class is for forward compatibility reasons. For PHP 8 and above use MatchQuery as Match is reserved.
*/
class MatchQuery extends Match
{

0 comments on commit f48e238

Please sign in to comment.