xlucene-translator / translator/utils
translator/utils
Functions
canFlattenBoolQuery()
canFlattenBoolQuery(
query
,flattenTo
):boolean
This prevents double nested queries that do the same thing
Parameters
Parameter | Type |
---|---|
query | BoolQuery |
flattenTo | BoolQueryTypes |
Returns
boolean
Source
xlucene-translator/src/translator/utils.ts:371
compactFinalQuery()
compactFinalQuery(
query
?):i.AnyQuery
|i.AnyQuery
[]
Parameters
Parameter | Type |
---|---|
query ? | AnyQuery |
Returns
i.AnyQuery
| i.AnyQuery
[]
Source
xlucene-translator/src/translator/utils.ts:382
flattenQuery()
flattenQuery(
query
,flattenTo
):i.AnyQuery
[]
Parameters
Parameter | Type |
---|---|
query | undefined | AnyQuery |
flattenTo | BoolQueryTypes |
Returns
i.AnyQuery
[]
Source
xlucene-translator/src/translator/utils.ts:359
getTermField()
getTermField(
node
):string
Parameters
Parameter | Type |
---|---|
node | TermLikeNode |
Returns
string
Source
xlucene-translator/src/translator/utils.ts:355
isBoolQuery()
isBoolQuery(
query
):query is BoolQuery
Parameters
Parameter | Type |
---|---|
query | unknown |
Returns
query is BoolQuery
Source
xlucene-translator/src/translator/utils.ts:377
isMultiMatch()
isMultiMatch(
node
):boolean
Parameters
Parameter | Type |
---|---|
node | TermLikeNode |
Returns
boolean
Source
xlucene-translator/src/translator/utils.ts:351
translateQuery()
translateQuery(
parser
,options
):i.ElasticsearchDSLResult
Parameters
Parameter | Type |
---|---|
parser | Parser |
options | UtilsTranslateQueryOptions |
Returns
i.ElasticsearchDSLResult