When filtering on an indexed date field the process function doesn't have the right date attributes loaded to properly generate the time parts to create the timestamp.
/**
* {@inheritdoc}
*/
protected function process(&$value) {
if (is_numeric($value)) {
$value = $this->processTimestamp($value, $this->currentDateAttributes);
}
}
}
The $this->currentDateAttributes is always blank and so the filtered value that goes to solr is always 0.
Instead it should load that specific field's date attributes.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3044906-currentattributes.patch | 1.47 KB | minoroffense |
Comments
Comment #2
minoroffense commentedComment #3
minoroffense commentedLikely just needs an extra call to
$this->getFieldSettings($name);before filtering.Comment #4
minoroffense commentedAdds the necessary call to get the current date field attributes when processing a filtered value.