title: Elasticsearch Indexing and Searching using association
body: <p>I have a Provider model which has many schedules &amp; has many services.</p>
  <p>Provider
  name
  email
  location(lat/lng)</p>
  <p>ProviderSchedules
  provider_id
  start_datetime
  end_datetime</p>
  <p>ProviderServices
  provider_id
  service_id</p>
  <p>Questions:</p>
  <ol>
  <li>How do index Provider with Schedules &amp; Services</li>
  <li>How do I query or filter let's say a Consumer/User would like to search providers that are available within date range and offer a kind of service/s.</li>
  </ol>
  <p>I am using Ruby on Rails. Any answers will be appreciated.
  I would like to understand it on ES level.</p>
  <p>thanks!</p>