Skip to content

Commit e119197

Browse files
AC-12482:All the Elasticsearch 7 and 8 modules and classes are marked in the code as Deprecated
1 parent 70d888d commit e119197

File tree

6 files changed

+13
-2
lines changed

6 files changed

+13
-2
lines changed

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/FieldName/Resolver/Price.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Resolver field name for price attribute.
1717
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1818
* @deprecated Elasticsearch is no longer supported by Adobe
19+
* @see this class will be responsible for ES only
1920
*/
2021
class Price implements ResolverInterface
2122
{

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/FieldName/Resolver/SpecialAttribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/**
1414
* Resolver field name for not special attribute.
1515
* @deprecated Elasticsearch is no longer supported by Adobe
16+
* @see this class will be responsible for ES only
1617
*/
1718
class SpecialAttribute implements ResolverInterface
1819
{

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/FieldType/Resolver/DefaultResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function __construct(ConverterInterface $fieldTypeConverter)
3636
*
3737
* @param AttributeAdapter $attribute
3838
* @return string
39+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3940
*/
4041
public function getFieldType(AttributeAdapter $attribute): ?string
4142
{

app/code/Magento/Elasticsearch/Model/Adapter/FieldType/Date.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct(
4949

5050
/**
5151
* Retrieve date value in elasticsearch format (ISO 8601)
52+
*
5253
* Example: 1995-12-31T23:59:59
5354
*
5455
* @param int $storeId

app/code/Magento/Elasticsearch/SearchAdapter/AggregationFactory.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
use Magento\Framework\ObjectManagerInterface;
99

10+
/**
11+
* Aggregation Factory
12+
* @api
13+
* @since 100.1.0
14+
* @deprecated Elasticsearch is no longer supported by Adobe
15+
* @see this class will be responsible for ES only
16+
*/
1017
class AggregationFactory
1118
{
1219
/**

app/code/Magento/Elasticsearch/SearchAdapter/Query/Preprocessor/Stopwords.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ class Stopwords implements PreprocessorInterface
2929
/**
3030
* Cache id for elasticsearch stopwords
3131
*/
32-
private const CACHE_ID = 'elasticsearch_stopwords';
32+
public const CACHE_ID = 'elasticsearch_stopwords';
3333

3434
/**
3535
* Stopwords file modification time gap, seconds
3636
*/
37-
private const STOPWORDS_FILE_MODIFICATION_TIME_GAP = 900;
37+
public const STOPWORDS_FILE_MODIFICATION_TIME_GAP = 900;
3838

3939
/**
4040
* @var StoreManagerInterface

0 commit comments

Comments
 (0)