, timeUUID solr. TimeUUID - .
:
:
UUID: 118ffe80-466b-11e1-b5a5-5732cf729524 (, 24 2012 . 9:09:06 GMT).
-24,2012 UUID.
In Solr, dataconfig.xml, you can write javascript to hide the uuid time until the actual date and create an index for this field.
Example: Get time information from the code below.
<dataConfig>
< script> < ![CDATA[
function f1(row) {
var uuid= row.get('timeUUID');
//Java Script to convert UUID to Date
row.put('timeUUID', uuid);
return row;
}
]] > < /script>
< document>
< entity name="e" transformer="script:f1" query="select * from X">
....
< /entity>
< /document>
Tips: You can create any additional fields using a script. Example: Year, Day, Month, etc.
source
share