/** * The associator only returns a SearchRequest, so this is a wrapper function to return the * specified query from the SearchRequest object. * * @param associator * @param summary * @param index Index of the query in the SearchRequest object * @return */ private ProductIndexQuery getProductIndexQuery( Associator associator, ProductSummary summary, int index) { SearchRequest request = associator.getSearchRequest(summary); List<SearchQuery> queries = request.getQueries(); return queries.get(index).getProductIndexQuery(); }