Error when filtering by date field in views

Created on 17 June 2022, about 3 years ago
Updated 20 March 2023, over 2 years ago

Problem/Motivation

When filtering by a date field in an elastic search view the following error appears:

failed to parse date field [1.6409916E9] with format [strict_date_optional_time||epoch_second]

Steps to reproduce

1. Install search_api, elasticsearch_connector 8.0.x-dev
2. Create elasticsearch cluster, search api server and index with for example basic content configuration and at least one indexed date field, for example authored date or changed.
3. Create some articles, basic pages and index the content
4. Create a view with your elastic index and add date field exposed filter with greater than, lower than, between.
5. The mentioned error appears when the filter is used.

Proposed resolution

Remove (float) conversion in SearchBuilder.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

8.0

Component

Code

Created by

🇪🇸Spain budalokko Girona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024