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
Implement EZP-24270: Indexable Date field type #1234
Conversation
new Search\Field( | ||
'value', | ||
$field->value->data["timestamp"], | ||
new Search\FieldType\IntegerField() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for now I guess, but both Solr and Elastic search has native Date/DateTime types right?
+1 |
1 similar comment
+1 |
36ab4d1
to
20f7e59
Compare
Now updated to index Date value in date field, as beginning of the day UTC. |
0d73afc
to
402bf2d
Compare
Fixed target value for Solr in e88350f. This now requires the value in the full format |
ok, any downsides or alternatives? |
The only downside is we now have to provide a date string in the full format. That is just for Solr, Elasticsearch is a more flexible and can accept One alternative would be to format the value for the targeted field. It would be possible as we have all information from the |
|
||
protected function getSearchTargetValueOne() | ||
{ | ||
// Handling Legacy Search Engine, which stores Checkbox value as integer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkbox, same below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in af727a7.
af727a7
to
68e534b
Compare
It is actually supported only by |
68e534b
to
09271fc
Compare
Implement EZP-24270: Indexable Date field type
This PR resolves https://jira.ez.no/browse/EZP-24270
A subtask of https://jira.ez.no/browse/EZP-24232
This implements
Indexable
definition forDate
field type. Date value is indexed as integer (timestamp with time of day at 0).