-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling Indexing of Users & Terms Maps Date/Time Fields as Strings #1817
Comments
@dmhendricks thanks for reaching out! From what I can see, the mapping for post_date is 'date' already: ElasticPress/includes/mappings/post/7-0.php Lines 288 to 294 in 1ad1716
Can you share the error you're getting? I'm wondering if maybe the mapping isn't being properly applied and ES is guessing at some fields. Also, I'd love to know what types of reporting you pull with Kibana. Since EP tracks mostly searches and not real-time data, I can never think of good use-cases for Kibana reporting but I know they're out there and we'd love to make the plugin work better for them. |
@tlovett1 since you're most familiar with Users/Terms, any chance you could also take a quick look at this one? |
Hi @dmhendricks , Have you tried with the latest version of Elasticpress? We have been merging a lot of code and might be solving the issue. Please feel free to open a new issue if this is not resolved! |
Same error here, I'm using version 3.5.5. The mapping is always created using the test field type, instead of date. I debbuged the code, and althought is clearly defined in "7.-0.php" file line 293, for some reason ES ignore that mapping and sets text. Is very annoying, i can't use the autosuggest feature, it throws error 400 bad request "field [post_date_gmt] is of type [indexed,tokenized], but only numeric types are supported". |
facing the same issue on the latest version of the elasticpress [Version 4.1.0] |
simply I am indexing data via the command line and its mapping date field as text. wp elasticpress clear-index Not showing any errors on CLI |
should actually be
|
Hi Flipeelia followed following steps command: In Dashboard showing the following Message |
Describe the bug
If I activate indexing of Users and/or Terms, the schema for
post_date
andpost_date_gmt
is mapped as text rather than date. This presents a bit of an inconvenience when I try to work with the data in Kibana because it doesn't let me filter posts by date/time, nor add either field as the default Time Filter (since it only allows Date types for this functionality, though perhaps there is a way to get around it that I'm not aware of).Steps to Reproduce
wp elasticpress activate-feature users
and/orwp elasticpress activate-feature terms
wp elasticpress put-mapping
/wp elasticpress index --setup
post_date
andpost_date_gmt
fields are now mapped as text types (?).Expected behavior
It would be nice if they were mapped as Date (as they are when indexing of Users and/or Terms is disabled) so that I may filter the data accordingly in Kibana, et al.
Environment information
Site Health Info:
I have this disabled on all of my sites for security/user annoyance reasons, but can enable it and provide the output if required/relevant.Additional context
I had never enabled indexing of these before, but wanted to for speed, so I'm uncertain if it is a new thing or if it was always this way. It appears to be doing this on all of my sites (6 of them, each with different themes/plugins but all with the same versions noted above).
I currently have indexing of Users and Terms disabled on all of the sites because I rely on Kibana for working with data.
Thank you.
The text was updated successfully, but these errors were encountered: