@Internal public final class ESFieldNameTranslator extends Object
| Constructor and Description |
|---|
ESFieldNameTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
translate(String fieldName)
Replace '.' with '_' as ES 2.x does not allow field names with dots.
|
static String |
wildcardAllFieldsInQuery(String query)
This method appends escape + asterisk to each field name in query string and replaces the original field name
by the new field name e.g
title: "hello world" will become title\*: "hello world"
so ES will search for any field names starting with title. |
static String |
wildcardField(String fieldName)
This method appends asterisk into field name e.g
title will become
title* so ES will search for any field names starting with title. |
public static String translate(String fieldName)
fieldName - public static String wildcardField(String fieldName)
title will become
title* so ES will search for any field names starting with title.fieldName - public static String wildcardAllFieldsInQuery(String query)
title: "hello world" will become title\*: "hello world"
so ES will search for any field names starting with title.query - Copyright © 2003–2017 Atlassian. All rights reserved.