date - How to store opening hours semantically in NoSQL? -
i'm wondering best way store opening hours , retrieving if place open right (or specific time). humans, mo-fr 9am-5pm, sa 10am-2pm fine, how can computer understand , query in nosql / document based database elasticsearch?
fwiw: david smiley (one of solr / lucene guru's ) , have come working solution (on epaper, never implemented @ least me) in solr. solution simplified if require 1 -slot per day of week, may want.
http://lucene.472066.n3.nabble.com/modeling-openinghours-using-multipoints-td4025336.html
problem based on new spatial-stuff in solr 4 (which stuff -> read post), i'm pretty sure hasn't made it's way es yet although might mistaken.
no guarentees, no docs :)
a straightforward alternative, if indeed have 1 -slot per day of week have 14 dynamic-fields, representing 7 closing , 7 opening-hours , simple boolean-query on correct fields.
Comments
Post a Comment