title: query to getting result for a list of ids in elastic search
body: <p>I have a Query for getting lastSeenTime only for one user
  but what I need is to get a map of ids by their last seen for a list of users in elastic search
  can somebody help me with converting this query to find last seen of a list of users ssoIds?</p>
  
  <pre><code>static Map&lt;String, Object&gt; getLastSeen(String ssoId) {
      SearchResponse response = transportClient.prepareSearch(ChatSettings.ELASTIC_LAST_SEEN_INDEX_NAME)
              .setTypes(ChatSettings.ELASTIC_DB_NAME)
              .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
              .setQuery(QueryBuilders.idsQuery().addIds(ssoId))         
              .setFrom(0).setSize(1).setExplain(true)
              .get();
      checkResponse(response);
      Map&lt;String, Object&gt; result = null;
      if (response.getHits().getTotalHits() &gt; 0) {
          result = response.getHits().getAt(0).getSource();
      }
      return result;
  }
  </code></pre>
  
  <p>actually I want something like this</p>
  
  <pre><code>static Map&lt;String, Object&gt; getLastSeens(List&lt;String&gt; ssoIdList)
  {
    //elsticQuery
  }
  </code></pre>