Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,6 @@ paket-files/
/src/Services.Core.Install/*.zip
**/App_Data/LuceneIndex
**/App_Data/LocalIndex
**/App_Data/IndexBackup
**/App_Data/Logs
/src/WebApps/**/install-services-core
2 changes: 1 addition & 1 deletion src/ContentRepository/RepositoryTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public static string CopyExplicitEntriesOfEveryoneToVisitor(Content root, string
[ODataAction(Category = "Indexing")]
[ContentTypes(N.CT.PortalRoot)]
[AllowedRoles(N.R.Administrators, N.R.Developers)]
public static async STT.Task<BackupResponse> BackupIndex(Content content, string target)
public static async STT.Task<BackupResponse> BackupIndex(Content content, string target = null)
{
var engine = Providers.Instance.SearchEngine.IndexingEngine;
var response = await engine.BackupAsync(target, CancellationToken.None)
Expand Down
6 changes: 6 additions & 0 deletions src/Search/Indexing/BackupInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public class BackupInfo
/// </summary>
public DateTime FinishedAt { get; set; }
/// <summary>
/// Gets or sets the path of directory that contains the backed-up files.
/// Can be relative or absolute.
/// </summary>
public string TargetPath { get; set; }
/// <summary>
/// Gets or sets the total length of the files to be copied.
/// </summary>
public long TotalBytes { get; set; }
Expand Down Expand Up @@ -53,6 +58,7 @@ public BackupInfo Clone()
{
StartedAt = StartedAt,
FinishedAt = FinishedAt,
TargetPath = TargetPath,
TotalBytes = TotalBytes,
CopiedBytes = CopiedBytes,
CountOfFiles = CountOfFiles,
Expand Down
2 changes: 1 addition & 1 deletion src/Search/SenseNet.Search.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>2.5.1-alpha.2</Version>
<Version>2.5.1-alpha.3</Version>
<AssemblyName>SenseNet.Search</AssemblyName>
<RootNamespace>SenseNet.Search</RootNamespace>
<Company>Sense/Net Inc.</Company>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
"Tracing": {
"StartupTraceCategories": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
"search": {
"service": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
"Email": {
"Server": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
"Email": {
"Server": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
"AddJwtCookie": true
},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
//"lucene29": {
// "IndexBackupDirectory": "App_Data\\IndexBackup"
//},
"Email": {
"Server": "",
"Port": 587
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
// "AddJwtCookie": false
//},
"ApiKeys": {
"HealthCheckerUser": "__set_value_in_secret.json__"
"HealthCheckerUser": ""
},
//"lucene29": {
// "IndexBackupDirectory": "App_Data\\IndexBackup"
//},
"Email": {
"Server": "",
"Port": 587
Expand Down