Skip to content
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

Indexing fails when for docs with unpub_date or pub_date set when using ElasticSearch #34

Open
isaacniebeling opened this issue May 19, 2016 · 2 comments

Comments

@isaacniebeling
Copy link

What it says on the tin... If there's an unpub_date set, it fails with:

PHP Fatal error: Uncaught exception 'Elastica\Exception\ResponseException' with message 'failed to parse [unpub_date]' in /core/components/simplesearch/model/simplesearch/driver/libs/Elastica/Transport/Http.php:171

I tried adding pub_date and unpub_date to the $dateFields array, but that cause indexing to fail when there was no pub/unpub_date set (with the same message). I've temporarily just unset($fields['unpub_date'], $fields['pub_date']) before the $fields loop, but I'm not sure that's the best way to handle things. @theboxer What do you think?

@theboxer
Copy link
Member

I've added pub_date and unpub_date to $dateFields and indexing works fine...

@theboxer
Copy link
Member

@isaacniebeling did you had a chance to try it again?

matdave pushed a commit that referenced this issue Jul 25, 2022
New Portuguese translations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants