mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
Set the correct number format and improve paths finding
This commit is contained in:
@@ -102,6 +102,7 @@ class RecordIndexer
|
|||||||
|
|
||||||
// Only search in the databox of the record itself
|
// Only search in the databox of the record itself
|
||||||
$searchParams['body']['query']['filtered']['filter'] = array('term' => array('databox_id' => $record['databox_id']));
|
$searchParams['body']['query']['filtered']['filter'] = array('term' => array('databox_id' => $record['databox_id']));
|
||||||
|
$searchParams['body']['size'] = 20;
|
||||||
|
|
||||||
$queryResponse = $client->search($searchParams);
|
$queryResponse = $client->search($searchParams);
|
||||||
|
|
||||||
@@ -187,7 +188,7 @@ class RecordIndexer
|
|||||||
$field['type'] = 'date';
|
$field['type'] = 'date';
|
||||||
break;
|
break;
|
||||||
case \databox_field::TYPE_NUMBER:
|
case \databox_field::TYPE_NUMBER:
|
||||||
$field['type'] = 'string'; // TODO integer, float, double ?
|
$field['type'] = 'double';
|
||||||
break;
|
break;
|
||||||
case \databox_field::TYPE_STRING:
|
case \databox_field::TYPE_STRING:
|
||||||
case \databox_field::TYPE_TEXT:
|
case \databox_field::TYPE_TEXT:
|
||||||
|
Reference in New Issue
Block a user