This repository was archived by the owner on Jan 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
algoliasearch/src/main/java/com/algolia/search/saas Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,8 @@ Query setGetRankingInfo(@Nullable Boolean enabled) {
657
657
return set (KEY_GET_RANKING_INFO , enabled );
658
658
}
659
659
660
- public @ Nullable Boolean getGetRankingInfo () {
660
+ public @ Nullable
661
+ Boolean getGetRankingInfo () {
661
662
return parseBoolean (get (KEY_GET_RANKING_INFO ));
662
663
}
663
664
@@ -1556,6 +1557,22 @@ ExactOnSingleWordQuery getExactOnSingleWordQuery() {
1556
1557
return value == null ? null : ExactOnSingleWordQuery .fromString (value );
1557
1558
}
1558
1559
1560
+ private static final String KEY_ENABLE_PERSONALIZATION = "enablePersonalization" ;
1561
+
1562
+ /**
1563
+ * @param enabled If set to true, user preferences are used as part of the relevance and ranking process.
1564
+ * Defaults to false.
1565
+ */
1566
+ public @ NonNull
1567
+ Query setEnablePersonalization (@ Nullable Boolean enabled ) {
1568
+ return set (KEY_ENABLE_PERSONALIZATION , enabled );
1569
+ }
1570
+
1571
+ public @ Nullable
1572
+ Boolean getEnablePersonalization () {
1573
+ return parseBoolean (get (KEY_ENABLE_PERSONALIZATION ));
1574
+ }
1575
+
1559
1576
private static final String KEY_ENABLE_RULES = "enableRules" ;
1560
1577
1561
1578
/**
You can’t perform that action at this time.
0 commit comments