Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

+10 -6
View File
@@ -348,9 +348,9 @@ class Query extends SearchQuery
/**
* Stores the "more like this" Content object for search()
* @param array|null $moreLikeThis
* @param string|null $moreLikeThis
*/
protected array|null $moreLikeThis = NULL;
protected string|null $moreLikeThis = NULL;
/**
* Filter by more like this
@@ -924,11 +924,13 @@ class Query extends SearchQuery
if ( $start )
{
$range['gt'] = $start->getTimestamp();
/* Numeric values are treated as milliseconds since epoch, not seconds https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html */
$range['gt'] = (string) $start->getTimestamp();
}
if ( $end )
{
$range['lt'] = $end->getTimestamp();
/* Numeric values are treated as milliseconds since epoch, not seconds https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html */
$range['lt'] = (string) $end->getTimestamp();
}
if ( $range )
@@ -954,11 +956,13 @@ class Query extends SearchQuery
if ( $start )
{
$range['gt'] = $start->getTimestamp();
/* Numeric values are treated as milliseconds since epoch, not seconds https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html */
$range['gt'] = (string) $start->getTimestamp();
}
if ( $end )
{
$range['lt'] = $end->getTimestamp();
/* Numeric values are treated as milliseconds since epoch, not seconds https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html */
$range['lt'] = (string) $end->getTimestamp();
}
if ( $range )