Skip to content
Snippets Groups Projects
Commit 899f6098 authored by Kalle Vuorjoki's avatar Kalle Vuorjoki
Browse files

Issue #3096887 by sokru: Update documentation

parent aaa2ea81
No related branches found
No related tags found
2 merge requests!39Issue #3279558: Support ElasticSearch 8,!37Issue #3175898: Port issue 3008742 to 8.x-7.x - [mlt] query does not support [ids]
......@@ -775,15 +775,17 @@ class SearchApiElasticsearchBackend extends BackendPluginBase implements PluginF
/**
* Parse the date values.
* It's necessary to build the facets. It convert epoch milliseconds format to seconds.
*
* It's necessary to build the facets. It convert epoch milliseconds format
* to seconds.
* Return all data terms converted in seconds.
*
* @param \Drupal\search_api\Query\QueryInterface $query
* Search API query object.
* @param array $index_fields
* Index fields.
* @param string $field_name
* Field name
* Field name.
* @param array $terms
* Array terms contains all results from Elasticsearch
* Array terms contains all results from Elasticsearch.
*/
protected function parseDateFacets(array $index_fields, $field_name, array &$terms) {
$field_type = $index_fields[$field_name]->getType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment