Skip to content

Commit

Permalink
feat: Add EnablePersonalization setting parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
spinach committed Aug 17, 2020
1 parent 1802e89 commit a86bf1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Algolia.Search.Test/EndToEnd/Index/SettingsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public async Task TestSettings()
{ "fi", new List<string> { "attribute3" } }
},
KeepDiacriticsOnCharacters = "øé",
EnablePersonalization = true,
UserData = "User data"
};

Expand Down
5 changes: 5 additions & 0 deletions src/Algolia.Search/Models/Settings/IndexSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ private List<string> NumericAttributesToIndex
/// </summary>
public Dictionary<string, Dictionary<string, string>> CustomNormalization { get; set; }

/// <summary>
/// Enable the Personalization feature. Engine default: false
/// </summary>
public bool? EnablePersonalization { get; set; }

/// <summary>
/// Custom settings for advanced use cases
/// </summary>
Expand Down

0 comments on commit a86bf1b

Please sign in to comment.