1using System.Threading.Tasks;
41 : base(new
ScriptNode[] { IndexCollection, Folder, Recursive },
58 : base(new
ScriptNode[] { IndexCollection, Folder, Recursive, SubFoldersToExclude },
72 public override string[]
DefaultArgumentNames =>
new string[] {
"IndexCollection",
"Folder",
"Recursive" };
102 string Folder =
Arguments[i++].AssociatedObjectValue?.
ToString() ??
string.Empty;
105 if (!Recursive.HasValue)
108 string[] SubFoldersToExclude;
114 int j, d = V.Dimension;
116 SubFoldersToExclude =
new string[d];
118 for (j = 0; j < d; j++)
119 SubFoldersToExclude[j] = V.GetElement(j).AssociatedObjectValue?.ToString();
122 SubFoldersToExclude =
new string[] {
Arguments[i].AssociatedObjectValue?.
ToString() };
125 SubFoldersToExclude =
new string[0];
Contains statistics about a files folder (re)indexation procedure.
Static class for access to Full-Text-Search
static Task< FolderIndexationStatistics > IndexFolder(string IndexCollection, string Folder, bool Recursive, params string[] ExcludeSubfolders)
Indexes or reindexes files in a folder.
Script runtime exception.
Class managing a script expression.
Indexes files in a folder.
FtsFolder(ScriptNode IndexCollection, ScriptNode Folder, ScriptNode Recursive, ScriptNode SubFoldersToExclude, int Start, int Length, Expression Expression)
Indexes files in a folder.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override string[] DefaultArgumentNames
Default Argument names
FtsFolder(ScriptNode IndexCollection, ScriptNode Folder, ScriptNode Recursive, int Start, int Length, Expression Expression)
Indexes files in a folder.
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string FunctionName
Name of the function
FtsFolder(ScriptNode IndexCollection, ScriptNode Folder, int Start, int Length, Expression Expression)
Indexes files in a folder.
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes3Scalar
Three scalar parameters.
Base class for all nodes in a parsed script tree.
static ? bool ToBoolean(IElement Value)
Tries to convert an element to a boolean value.
int Length
Length of expression covered by node.
override string ToString()
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.
Basic interface for vectors.
ArgumentType
Type of parameter used in a function definition or a lambda definition.