File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,20 @@ To implement indexing behaviour, functions can be set via static methods on the
27
27
``` csharp
28
28
public static class LookConfiguration
29
29
{
30
- // specify which Examine indexers to hook into (if not set, then all will be used by default)
30
+ // specify which Examine indexers to hook into
31
+ // if not set, then all will be used by default
31
32
public static string [] ExamineIndexers { get ; set ; }
32
33
34
+ // function to indicate whether indexing should take place
35
+ // if not set, then will indexing will always occur
36
+ public static Func <IndexingContext , bool > IndexIf { set ; }
37
+
33
38
// creates case sensitive and case insensitive fields (not analyzed) - for use with NameQuery
39
+ // if not set, then will use the IPublishedContent.Name
34
40
public static Func <IndexingContext , string > NameIndexer { set ; }
35
41
36
42
// creates a date & sorting fields - for use with DateQuery
43
+ // if not set, then will use the IPublishedContent.UpdateDate
37
44
public static Func <IndexingContext , DateTime ?> DateIndexer { set ; }
38
45
39
46
// creates a text field (analyzed) - for use with TextQuery
You can’t perform that action at this time.
0 commit comments