@@ -525,47 +525,59 @@ public SearchRequestBuilder addFields(String... fields) {
525
525
526
526
/**
527
527
* Adds a facet to the search operation.
528
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
528
529
*/
530
+ @ Deprecated
529
531
public SearchRequestBuilder addFacet (FacetBuilder facet ) {
530
532
sourceBuilder ().facet (facet );
531
533
return this ;
532
534
}
533
535
534
536
/**
535
537
* Sets a raw (xcontent) binary representation of facets to use.
538
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
536
539
*/
540
+ @ Deprecated
537
541
public SearchRequestBuilder setFacets (BytesReference facets ) {
538
542
sourceBuilder ().facets (facets );
539
543
return this ;
540
544
}
541
545
542
546
/**
543
547
* Sets a raw (xcontent) binary representation of facets to use.
548
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
544
549
*/
550
+ @ Deprecated
545
551
public SearchRequestBuilder setFacets (byte [] facets ) {
546
552
sourceBuilder ().facets (facets );
547
553
return this ;
548
554
}
549
555
550
556
/**
551
557
* Sets a raw (xcontent) binary representation of facets to use.
558
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
552
559
*/
560
+ @ Deprecated
553
561
public SearchRequestBuilder setFacets (byte [] facets , int facetsOffset , int facetsLength ) {
554
562
sourceBuilder ().facets (facets , facetsOffset , facetsLength );
555
563
return this ;
556
564
}
557
565
558
566
/**
559
567
* Sets a raw (xcontent) binary representation of facets to use.
568
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
560
569
*/
570
+ @ Deprecated
561
571
public SearchRequestBuilder setFacets (XContentBuilder facets ) {
562
572
sourceBuilder ().facets (facets );
563
573
return this ;
564
574
}
565
575
566
576
/**
567
577
* Sets a raw (xcontent) binary representation of facets to use.
578
+ * @deprecated Facets are deprecated and will be removed in a future release. Please use aggregations instead.
568
579
*/
580
+ @ Deprecated
569
581
public SearchRequestBuilder setFacets (Map facets ) {
570
582
sourceBuilder ().facets (facets );
571
583
return this ;
0 commit comments