File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
main/java/com/algolia/search/models/indexing
test/java/com/algolia/search Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -676,6 +676,15 @@ public T setRelevancyStrictness(Integer relevancyStrictness) {
676
676
return getThis ();
677
677
}
678
678
679
+ public Boolean getEnableReRanking () {
680
+ return enableReRanking ;
681
+ }
682
+
683
+ public T setEnableReRanking (Boolean enableReRanking ) {
684
+ this .enableReRanking = enableReRanking ;
685
+ return getThis ();
686
+ }
687
+
679
688
public String toParam () {
680
689
return QueryStringUtils .buildQueryAsQueryParams (this );
681
690
}
@@ -709,6 +718,7 @@ public String toParam() {
709
718
protected Boolean percentileComputation ;
710
719
protected List <String > queryLanguages ;
711
720
protected Boolean decompoundQuery ;
721
+ protected Boolean enableReRanking ;
712
722
713
723
/* attributes */
714
724
protected List <String > attributesToRetrieve ;
Original file line number Diff line number Diff line change @@ -670,6 +670,12 @@ void queryWithDistinct() {
670
670
assertThat (query .toParam ()).isEqualTo ("query=&distinct=0" );
671
671
}
672
672
673
+ @ Test
674
+ void queryWitEnabledReRanking () {
675
+ Query query = new Query ("" ).setEnableReRanking (false );
676
+ assertThat (query .toParam ()).isEqualTo ("enableReRanking=false&query=" );
677
+ }
678
+
673
679
@ Test
674
680
void queryWithMultipleParams () {
675
681
Query query =
You can’t perform that action at this time.
0 commit comments