Class SearchEntryHighlight

  • All Implemented Interfaces:

    @JsonClass(generateAdapter = true) 
    public final class SearchEntryHighlight
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getField() The field where a match occured (one of the fields defined on the request)
      final Unit setField(@Json(name = "field") String field) The field where a match occured (one of the fields defined on the request)
      final List<String> getSnippets() Any number of snippets for the specified field highlighting the matching text
      final Unit setSnippets(@Json(name = "snippets") List<String> snippets) Any number of snippets for the specified field highlighting the matching text
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchEntryHighlight

        SearchEntryHighlight(String field, List<String> snippets)
    • Method Detail

      • getField

         final String getField()

        The field where a match occured (one of the fields defined on the request)

      • setField

         final Unit setField(@Json(name = "field") String field)

        The field where a match occured (one of the fields defined on the request)

      • getSnippets

         final List<String> getSnippets()

        Any number of snippets for the specified field highlighting the matching text

      • setSnippets

         final Unit setSnippets(@Json(name = "snippets") List<String> snippets)

        Any number of snippets for the specified field highlighting the matching text