code: private FrequentlyRelatedItemSearchResponse parseResponseObject(JSONObject object) {
          Object o = object.get(ERROR_KEY);
          if(o!=null) {
              if(o instanceof String) {
                  return new FrequentlyRelatedItemSearchResponse(-1,true,(String)o,false,FrequentlyRelatedItemSearchResponse.EMPTY_FACETS);
  
              } else {
                  return FrequentlyRelatedItemSearchResponse.RESPONSE_ERROR;
              }
          }
          else {
              long taken = getResponseTime(object);
              boolean timedOut = getTimedOut(object);
              TermFacet[] facets = getFacets(object);
  
              return new FrequentlyRelatedItemSearchResponse(taken,false,"",timedOut,facets);
          }
      }
docs: "took":14,
  "timed_out":false,
  "facets":{
  "frequently-related-with":{
  "_type":"terms",
  "missing":0,
  "total":3,
  "other":0,
  "terms":[
  {
  "term":"4",
  "count":1
  },
  {
  "term":"3",
  "count":1
  },
  {
  "term":"2",
  "count":1
  }
  ]
  }
  }
  @param object
  @return