상속: IJsonSerializable
예제 #1
0
 //public SearchBuilder Facets(object query)
 //{
 //    (Covert to JObject)
 //    try {
 //        return facets(facets.underlyingBytes(), 0, facets.underlyingBytesLength());
 //    } catch (IOException e) {
 //        throw new ElasticSearchGenerationException("failed to generate filter from builder", e);
 //    }
 //}
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public HighlightBuilder Highlighter()
 {
     return _highlightBuilder ?? (_highlightBuilder = new HighlightBuilder());
 }
예제 #2
0
 /// <summary>
 /// Adds highlight to perform as part of the search.
 /// </summary>
 /// <param name="highlight"></param>
 /// <returns></returns>
 public SearchBuilder Highlight(HighlightBuilder highlight)
 {
     _highlightBuilder = highlight;
     return this;
 }