elastic-dsl-typescript
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { AbstractBulder } from '../../Abstract/AbstractBuilder'; | ||
import { BoolFields } from '../../Types'; | ||
import { BoolSchema } from './types'; | ||
export declare class Bool<BASE_SCHEMA extends BoolSchema> extends AbstractBulder { | ||
export declare class Bool<BASE_SCHEMA extends BoolSchema = BoolSchema> extends AbstractBulder { | ||
private _query; | ||
@@ -6,0 +6,0 @@ private checkField; |
import { Schema } from '../../Abstract/Schema'; | ||
import { Range } from '../../Types'; | ||
import { Boost, Fuzziness, MaxExpansions, PrefixLength, Relation, TimeZone, Transpositions, Rewrite } from '../../Types/QueryOptions'; | ||
import { Boost, Fuzziness, MaxExpansions, PrefixLength, Relation, TimeZone, Transpositions, Rewrite, Analyzer, AutoGenerateSynonymsPhraseQuery, FuzzyTranspositions, Lenient, Operator, MinimumShouldMatch, ZeroTermsQuery } from '../../Types/QueryOptions'; | ||
/** | ||
@@ -32,6 +32,16 @@ * Base Boool builder filters shema | ||
}; | ||
match: { | ||
field: string; | ||
params: { | ||
/** | ||
* (Required) Text, number, boolean value or date you wish to find in the provided <field>. | ||
*/ | ||
query: string | number | boolean; | ||
}; | ||
opts?: Analyzer | AutoGenerateSynonymsPhraseQuery | Fuzziness | MaxExpansions | PrefixLength | FuzzyTranspositions | Lenient | Operator | MinimumShouldMatch | ZeroTermsQuery; | ||
}; | ||
term: { | ||
field: string; | ||
params: { | ||
value: string; | ||
value: string | number | boolean; | ||
}; | ||
@@ -43,3 +53,3 @@ opts?: Boost; | ||
params: { | ||
value: string[]; | ||
value: string[] | number[] | boolean[]; | ||
}; | ||
@@ -46,0 +56,0 @@ opts?: Boost; |
{ | ||
"name": "elastic-dsl-typescript", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Node.js ElasticSearch search query builder", | ||
@@ -5,0 +5,0 @@ "main": "./", |
@@ -7,3 +7,3 @@ import { AbstractBulder } from '../../Abstract/AbstractBuilder'; | ||
export class Bool<BASE_SCHEMA extends BoolSchema> extends AbstractBulder { | ||
export class Bool<BASE_SCHEMA extends BoolSchema= BoolSchema> extends AbstractBulder { | ||
private _query: BoolQueryData = {}; | ||
@@ -10,0 +10,0 @@ |
@@ -11,3 +11,10 @@ import { Schema } from '../../Abstract/Schema'; | ||
Transpositions, | ||
Rewrite | ||
Rewrite, | ||
Analyzer, | ||
AutoGenerateSynonymsPhraseQuery, | ||
FuzzyTranspositions, | ||
Lenient, | ||
Operator, | ||
MinimumShouldMatch, | ||
ZeroTermsQuery, | ||
} from '../../Types/QueryOptions'; | ||
@@ -43,6 +50,26 @@ | ||
}; | ||
match: { | ||
field: string; | ||
params: { | ||
/** | ||
* (Required) Text, number, boolean value or date you wish to find in the provided <field>. | ||
*/ | ||
query: string | number | boolean; | ||
}; | ||
opts?: | ||
| Analyzer | ||
| AutoGenerateSynonymsPhraseQuery | ||
| Fuzziness | ||
| MaxExpansions | ||
| PrefixLength | ||
| FuzzyTranspositions | ||
| Lenient | ||
| Operator | ||
| MinimumShouldMatch | ||
| ZeroTermsQuery; | ||
}; | ||
term: { | ||
field: string; | ||
params: { | ||
value: string; | ||
value: string | number | boolean; | ||
}; | ||
@@ -54,3 +81,3 @@ opts?: Boost; | ||
params: { | ||
value: string[]; | ||
value: string[] | number[] | boolean[]; | ||
}; | ||
@@ -57,0 +84,0 @@ opts?: Boost; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299428
2414