lib/src/kbasesearchengine/search/ObjectData.java
public Builder withHighlight(final String field, final List<String> highlight) {
            Utils.notNullOrEmpty(field, "field cannot be null or whitespace");
            Utils.nonNull(highlight, "highlight list cannot be null");

            for(final String s : highlight){
                Utils.notNullOrEmpty(s, "highlight cannot be null or whitespace");
            }

            this.highlight.put(field, Collections.unmodifiableList(highlight));
            return this;
        }
/** Adds the highlight fields to the object.
         * @param highlight the map of fields returned from elasticsearch.
         * @return this builder.
         */
Adds the highlight fields to the object.
@param highlight the map of fields returned from elasticsearch.
@return this builder.
Adds the highlight fields to the object . @param highlight the map of fields returned from elasticsearch . @return this builder .
public Builder withHighlight(final String field, final List<String> highlight) {
            Utils.notNullOrEmpty(field, "field cannot be null or whitespace");
            Utils.nonNull(highlight, "highlight list cannot be null");
            for(final String s : highlight){
                Utils.notNullOrEmpty(s, "highlight cannot be null or whitespace");
            }
            this.highlight.put(field, Collections.unmodifiableList(highlight));
            return this;
        }
public Builder withHighlight ( final String field , final List < String > highlight ) { Utils . notNullOrEmpty ( field , "field cannot be null or whitespace" ) ; Utils . nonNull ( highlight , "highlight list cannot be null" ) ; for ( final String s : highlight ) { Utils . notNullOrEmpty ( s , "highlight cannot be null or whitespace" ) ; } this . highlight . put ( field , Collections . unmodifiableList ( highlight ) ) ; return this ; }
Adds the highlight fields to the object.
Adds the highlight fields to the object .