Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elasticsearch_connector
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
elasticsearch_connector
Commits
899f6098
Commit
899f6098
authored
Jan 6, 2023
by
Kalle Vuorjoki
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3096887
by sokru: Update documentation
parent
aaa2ea81
No related branches found
No related tags found
2 merge requests
!39
Issue #3279558: Support ElasticSearch 8
,
!37
Issue #3175898: Port issue 3008742 to 8.x-7.x - [mlt] query does not support [ids]
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php
+7
-5
7 additions, 5 deletions
...ugin/search_api/backend/SearchApiElasticsearchBackend.php
with
7 additions
and
5 deletions
src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php
+
7
−
5
View file @
899f6098
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment