Class SearchResultsParser


  • public class SearchResultsParser
    extends Object
    Parse this search response, creating a map of values for each document. The search response field names in the document are replaced by json field names in the parsed results, according to the fieldMap.
    • Constructor Detail

    • Method Detail

      • parse

        public List<Map<String,​String>> parse()
        Parse the entire response into a list of maps.
      • parseAndFilterResponse

        public List<Map<String,​String>> parseAndFilterResponse​(SearchResponseFilter filter,
                                                                     int maxNumberOfResults)
        Parse the response, accepting only those maps that are acceptable to the filter, until we reach the maximum desired number of results (or until we have parsed the entire response).