Skip to content

Commit

Permalink
feat: Change type of search_analyzer and analyzer to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominique Wirz committed Jul 30, 2019
1 parent 9ed1930 commit 89c3c53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/Mapping.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export type SimpleFieldType = 'text' | 'keyword' | 'date' | 'long' | 'double' | 'boolean' | 'ip';
export type SimpleFieldType = 'text' | 'keyword' | 'date' | 'long' | 'integer' | 'double' | 'boolean' | 'ip';
export type ObjectFieldType = 'object' | 'nested';
export type SpecializedFieldType = 'geo_point' | 'geo_shape' | 'completion';

export type Field = {
type?: SimpleFieldType | SpecializedFieldType | Function;
search_analyzer?: 'suggestion_query_analyzer';
analyzer?: 'suggestion_analyzer' | 'default_analyzer';
search_analyzer?: string;
analyzer?: string;
format?: 'date' | 'hour_minute';
};

export type Fields = {
[name: string]: Field,
[name: string]: Field;
};

export type MappingMeta = {
Expand Down

0 comments on commit 89c3c53

Please sign in to comment.