Interface ResultMessageFactory

All Known Implementing Classes:
DefaultResultMessageFactory

public interface ResultMessageFactory
  • Method Details

    • parseFromSource

      ResultMessage parseFromSource(String id, String index, Map<String,Object> message)
      Returns a new ResultMessage for the given fields.
      Parameters:
      id - the ID field value
      index - the index name field
      message - the map of message fields
      Returns:
      the new result message
    • parseFromSource

      ResultMessage parseFromSource(String id, String index, Map<String,Object> message, Map<String,List<String>> highlight)
      Returns a new ResultMessage for the given fields.
      Parameters:
      id - the ID field value
      index - the index name field
      message - the map of message fields
      highlight - the map of fields to highlight
      Returns:
      the new result message
    • createFromMessage

      ResultMessage createFromMessage(Message message)
      Creates a new ResultMessage for the given Message.
      Parameters:
      message - the message
      Returns:
      the new result message