@@ -71,6 +71,7 @@ public class Query {
7171 private RestrictNavigation restrictNavigation ;
7272 private Biasing biasing = new Biasing ();
7373 private boolean bot = false ;
74+ private Boolean intelligentNavigationEnabled ;
7475
7576 /**
7677 * <code>
@@ -120,6 +121,8 @@ private Request populateRequest(String clientKey) {
120121 request .setRestrictNavigation (convertRestrictNavigation ());
121122 request .setWildcardSearchEnabled (isWildcardSearchEnabled ());
122123 request .setSecuredPayload (securedPayload );
124+ request .setIntelligentNavigationEnabled (intelligentNavigationEnabled );
125+
123126 if (CollectionUtils .isNotEmpty (sort )) {
124127 for (Sort s : sort ) {
125128 request .setSort (convertSort (s ));
@@ -1659,4 +1662,30 @@ public void setBot(boolean bot) {
16591662 this .queryUrlParams .remove ("bot" );
16601663 }
16611664 }
1665+
1666+ /**
1667+ * @return The intelligent navigation flag.
1668+ */
1669+ public Boolean getIntelligentNavigationEnabled () {
1670+ return intelligentNavigationEnabled ;
1671+ }
1672+
1673+ /**
1674+ * <code>
1675+ * Explicitly enable or disable Intelligent Navigation (iNav), which will override any configuration applied to Areas or Rules that might trigger.
1676+ * Leave 'null' to allow the Area or Rule configurations to take priority.
1677+ *
1678+ * iNav will attempt to reorder your navigations and refinements based on popularity.
1679+ *
1680+ *
1681+ * </code>
1682+ *
1683+ * @param intelligentNavigationEnabled
1684+ * The intelligent navigation flag.
1685+ *
1686+ * @internal
1687+ */
1688+ public void setIntelligentNavigationEnabled (Boolean intelligentNavigationEnabled ) {
1689+ this .intelligentNavigationEnabled = intelligentNavigationEnabled ;
1690+ }
16621691}
0 commit comments