Skip to content

Commit 2fdddb2

Browse files
committed
Include Search API key
1 parent 6a38c0c commit 2fdddb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Cms.Integrations.Search.Algolia/Configuration/AlgoliaSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public class AlgoliaSettings
77

88
public string AdminApiKey { get; set; }
99

10-
public string ApiKey { get; set; }
10+
public string SearchApiKey { get; set; }
1111
}
1212
}

src/Umbraco.Cms.Integrations.Search.Algolia/Services/AlgoliaSearchService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public AlgoliaSearchService(IOptions<AlgoliaSettings> options)
1919

2020
public SearchResponse<Record> Search(string indexName, string query)
2121
{
22-
var client = new SearchClient(_settings.ApplicationId, _settings.AdminApiKey);
22+
var client = new SearchClient(_settings.ApplicationId, _settings.SearchApiKey);
2323

2424
var index = client.InitIndex(indexName);
2525

0 commit comments

Comments
 (0)