Issue is how to index this data properly so that querying can be possible as well.
I need to get the data of events on the basis of date, day of week and time slot. My primary id is event id.
- Table1-
select event_id, from_date, to_date from event_listing. event_id is primary key.
- Table2
select dayOfWeek, slot_start_time, slot_end_time from slot_data where event_id = $eventId
I need to index these data in solr, like - I'll get only one record for one particular event.
Once data is indexed, I need to query this data on the basis of- time slots and dayOfweek
.
Let me know the suitable way to get this.