# Elastic Search Indexing and Search Issue

**URL:** <https://discuss.elastic.co/t/elastic-search-indexing-and-search-issue/31253>\
**Category:** Elasticsearch\
**Created:** [September 28, 2015, 11:25am UTC](https://discuss.elastic.co/t/elastic-search-indexing-and-search-issue/31253 "2015-09-28T11:25:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasin215](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rasin215](https://discuss.elastic.co/u/rasin215)\
**Post date:** [September 28, 2015, 11:25am UTC](https://discuss.elastic.co/t/elastic-search-indexing-and-search-issue/31253/1 "2015-09-28T11:25:07Z")

</div>

search query formed for searching the documents with given skills.

GET resume\_index/\_search  
{  
"query": {  
"bool" : {  
"must" : [ {  
"ids" : {  
"types" : [],  
"values" : ["176", "177", "178", "179", "180", "181", "182", "183", "184", "185", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228"]  
}  
}, {  
"bool" : {  
"should" : [ {  
"match" : {  
"skills" : {  
"query" : "c#",  
"type" : "phrase",  
"analyzer" : "synonym"

```
                }
              }
            }, {
              "match" : {
                "skills" : {
                  "query" : "asp.net",
                  "type" : "phrase",
                  "analyzer" : "synonym"

                }
              }
            } ],
            "minimum_should_match" : "1"
          }
        }, {
          "match" : {
            "skills" : {
              "query" : "c#",
              "type" : "phrase",
               "analyzer" : "synonym"

            }
          }
        } ]
      }
       }
    }

```

Result is coming when i replace c# with other skill like java. But if c# or .net is mentioned in search query it is result is comin blank even those skills are already indexed.

{  
"took": 11,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 3,  
"max\_score": 0.40027505,  
"hits": [  
{  
"\_index": "resume\_index",  
"\_type": "phrase",  
"\_id": "198",  
"\_score": 0.40027505,  
"\_source": {  
"content": "",  
"skills": [  
"10g",  
"c++",  
"crystal report",  
"ms-access",  
"real estate",  
"ui",  
".net",  
"ado",  
"c#",  
"database",  
"java",

```
               ]
            }
         },
         
         {
            "_index": "resume_index",
            "_type": "phrase",
            "_id": "208",
            "_score": 0.3556832,
            "_source": {
               "content": "",
               "skills": [
                  "c++",
                 ".net",
                  "ado",
                  "c#",
                 "java",
                  "mvc",
                 "asp.net",
                  "c programming",
                  "css",
                  "development methodologies",
                  "entity framework",
                  "management",
                 
               ]
            }
         }
      ]
   }
}

```

Content section i have removed because of max character allowed. You can see that c# is indexed in document but still not able to get the result.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:47pm UTC](https://discuss.elastic.co/t/elastic-search-indexing-and-search-issue/31253/2 "2017-07-05T23:47:47Z")

</div>


