Forward Slash in Filter Term [ES 5.6]


(Derekbrenner) #1

When using a forward slash in a term for a filter, I am not getting any documents returned even tho the term is an exact match.

GET datums/datum/_search
{
  "_source": [
    "Uuid",
    "TransportType",
  ],
	"query": {
		"bool": { "filter":[
                 {"terms":{"TransportType":["video/zoom"] } }
		]}
	},
	"from": 1,
	"size": 10
}

When the forward slash is removed all documents with TransportType = "video/zoom" are returned. I have tryed to use a backslash or two to escape the caracter with no luck. Any help would be appriciated.

Here is the mapping of the transport type.

"TransportType": {
    "type": "text",
    "fields": {
        "keyword": {
            "type": "keyword",
            "ignore_above": 256
        }
    }
}

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.