Skip to content

Commit 387138a

Browse files
committed
Minor Processor related fixes
1 parent 6b0a1c3 commit 387138a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

specification/ingest/_types/Processors.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { Field, Fields, GrokPattern, Id, Name } from '@_types/common'
2323
import { GeoShapeRelation } from '@_types/Geo'
2424
import { double, integer, long } from '@_types/Numeric'
2525
import { SortOrder } from '@_types/sort'
26+
import { Script } from '@_types/Scripting'
2627

2728
/**
2829
* @variants container
@@ -309,7 +310,7 @@ export class ProcessorBase {
309310
/**
310311
* Conditionally execute the processor.
311312
*/
312-
if?: string
313+
if?: Script
313314
/**
314315
* Ignore failures for the processor.
315316
*/
@@ -731,7 +732,7 @@ export class DateIndexNameProcessor extends ProcessorBase {
731732
* An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.
732733
* Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.
733734
*/
734-
date_formats: string[]
735+
date_formats?: string[]
735736
/**
736737
* How to round the date when formatting the date into the index name. Valid values are:
737738
* `y` (year), `M` (month), `w` (week), `d` (day), `h` (hour), `m` (minute) and `s` (second).

0 commit comments

Comments
 (0)