Added a setup command, which creating the index and sets the visible_from and visible_to dates as date types in the mapping. Also trying to add a filter which checks these, but have commented out as not working correctly just yet.
Use the 'coanda_url' variable. Had to use this as some pages might have a url attribute!