WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Span Field Masking Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Span Field Masking Usage
editFluent DSL example
editq .SpanFieldMasking(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Name) .Query(sq=>sq .SpanTerm(st=>st.Field(p=>p.Description).Value("dolorem")) ) )
Object Initializer syntax example
editnew SpanFieldMaskingQuery { Name = "named_query", Boost = 1.1, Field = Infer.Field<Project>(p => p.Name), Query = new SpanQuery { SpanTerm = new SpanTermQuery { Field = Infer.Field<Project>(p => p.Description), Value = "dolorem" } } }
Example json output.
{ "field_masking_span": { "_name": "named_query", "boost": 1.1, "field": "name", "query": { "span_term": { "description": { "value": "dolorem" } } } } }