Set the correct number format and improve paths finding

This commit is contained in:
Damien Alexandre
2014-10-13 17:11:37 +02:00
parent 52978e6239
commit f018723713

View File

@@ -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: