Hi,
I haven't defined any analyzers and assume it's using the standard analyzer
ES version : 5.6 Lucene_version : 6.6.1
Normal query string results in case-insensitive search but if the query string is put inside nested query it results in case sensitive search
Steps to Reproduce
Create new index test3
PUT test3
{
"mappings": {
"articles_batch":{
"dynamic": "strict",
"properties": {
"articleName":{
"type": "keyword"
},
"comments":{
"type": "nested",
"properties": {
"commentName":{
"type": "keyword"
}
}
}
}
}
},
"settings": {
"index":{
"mapping":{
"ignore_malformed": "true"
},
"number_of_shards":"5",
"number_of_replicas":"1"
}
}
}
Create a document
POST test3/articles_batch
{
"articleName": "Name1",
"comments" : [ {
"commentName":"Hello1"
},{
"commentName":"hello2"
}]
}
Searching for hello1 results in hits
GET test3/articles_batch/_search
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*hello1*",
"default_operator": "AND",
"lenient": true
}
}
]
}
}
}
However, nested search for hello1 doesn't provide any hits
GET test3/articles_batch/_search
{
"query": {
"bool": {
"must": [
{
"nested": {
"path": "comments",
"inner_hits": {
},
"query": {
"query_string": {
"query": "*hello1*",
"default_operator": "AND",
"lenient": true,
"fields": ["comments.*"]
}
}
}
}
]
}
}
}
Any help is greatly appreciated.
Thanks