xlucene-parser / context
context
Functions
makeContext()
makeContext(
arg
):object
Parameters
Parameter | Type |
---|---|
arg | ContextArg |
Returns
object
coerceTermType()
coerceTermType: (
node
,_field
?) =>void
Parameters
Parameter | Type |
---|---|
node | any |
_field ? | string |
Returns
void
getFieldType()
getFieldType: (
field
) =>xLuceneFieldType
|undefined
Parameters
Parameter | Type |
---|---|
field | string |
Returns
xLuceneFieldType
| undefined
isInferredTermType()
isInferredTermType: (
field
) =>boolean
Parameters
Parameter | Type |
---|---|
field | string |
Returns
boolean
logger
logger:
Logger
=utils.logger
parseGeoDistance()
parseGeoDistance: (
str
) =>GeoDistanceObj
Parameters
Parameter | Type |
---|---|
str | string |
Returns
GeoDistanceObj
parseGeoPoint()
parseGeoPoint: (
point
) =>GeoPoint
(point
,throwInvalid
) =>GeoPoint
(point
,throwInvalid
) =>GeoPoint
|null
Convert an input into a Geo Point object with lat and lon
Parameters
Parameter | Type |
---|---|
point | unknown |
Returns
GeoPoint
Parameters
Parameter | Type |
---|---|
point | unknown |
throwInvalid | true |
Returns
GeoPoint
Parameters
Parameter | Type |
---|---|
point | unknown |
throwInvalid | false |
Returns
GeoPoint
| null
parseInferredTermType()
parseInferredTermType: (
field
,value
) =>TermLikeNode
Parameters
Parameter | Type |
---|---|
field | string |
value | any |
Returns
propagateDefaultField()
propagateDefaultField: (
node
,field
) =>void
Propagate the default field on a field group expression
Parameters
Parameter | Type |
---|---|
node | Node |
field | string |
Returns
void
throwOnOldGeoUsage()
throwOnOldGeoUsage: (
term
,field
) =>never
Parameters
Parameter | Type |
---|---|
term | Record <string , any > |
field | string |
Returns
never
validateScopedChars()
validateScopedChars: (
chars
) =>void
Parameters
Parameter | Type |
---|---|
chars | string [] |
Returns
void