File tree 3 files changed +31
-2
lines changed
Domain/Analysis/TokenFilter
3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Target "BuildApp" (fun _ ->
42
42
//from their interfaces
43
43
//!! "build/output/Nest/Nest.xml" |> Seq.iter(fun f -> PatchXmlDoc f)
44
44
45
- CopyFile " build/output/Elasticsearch.Net/init .ps1" " build/elasticsearch-init.ps1"
45
+ CopyFile " build/output/Elasticsearch.Net/install .ps1" " build/elasticsearch-init.ps1"
46
46
47
47
)
48
48
Original file line number Diff line number Diff line change
1
+ using Newtonsoft . Json ;
2
+
3
+ namespace Nest
4
+ {
5
+ /// <summary>
6
+ /// A token filter of type delimited_token_filter. Splits tokens into tokens and payload whenever a delimiter character is found.
7
+ /// </summary>
8
+ public class DelimitedPayloadTokenFilter : TokenFilterBase
9
+ {
10
+
11
+ public DelimitedPayloadTokenFilter ( )
12
+ : base ( "delimited_payload_filter" )
13
+ { }
14
+
15
+ /// <summary>
16
+ /// Character used for splitting the tokens. Default is '|'.
17
+ /// </summary>
18
+ [ JsonProperty ( "delimiter" ) ]
19
+ public char ? Delimiter { get ; set ; }
20
+
21
+ /// <summary>
22
+ /// The type of the payload. 'int' for integer, 'float' for float and 'identity' for characters. Default is 'float.'
23
+ /// </summary>
24
+ [ JsonProperty ( "encoding" ) ]
25
+ public string Encoding { get ; set ; }
26
+
27
+ }
28
+ }
Original file line number Diff line number Diff line change 88
88
<Reference Include =" System.ServiceModel" />
89
89
</ItemGroup >
90
90
<ItemGroup >
91
+ <Compile Include =" Domain\Analysis\TokenFilter\DelimitedPayloadTokenFilter.cs" />
91
92
<Compile Include =" ConvenienceExtensions\AliasExtensions.cs" />
92
93
<Compile Include =" ConvenienceExtensions\CountExtensions.cs" />
93
94
<Compile Include =" ConvenienceExtensions\DeleteExtensions.cs" />
815
816
<Target Name="AfterBuild">
816
817
</Target>
817
818
-->
818
- </Project >
819
+ </Project >
You can’t perform that action at this time.
0 commit comments