I am trying to implement NOT condition in elasticsearch query. 
Can I Implement filter inside bool or I need to write separate 
filter as below. Any optimum solution is there? 
{
   "query": {
      "bool": {
     "must": [
        {
           "query_string": {
          "query": "fashion"
           }
        },
        {
           "term": {
          "post_status": "publish"
           }
        }
     ]
      }
   },
   "filter": {
      "not": {
     "filter": {
        "term": {
           "post_type": "page"
        }
     }
      }
   }
}