django - Search doesn't return results unless type is defined -


i'm new elasticsearch , decided use search engine on project. working on local elasticsearch 1.5.0 version , working fine: queries , filters returned right results. switched use elasticsearch of company, running version 1.4.2 , because of filters didn't work. upgraded elasticsearch version 1.6.0 , worked once again. after removing , indexing information again, queries aren't working anymore.

if specify type of document want for, query works fine:

get /epg/program_elk/_search/ {     "query":      {         "bool":          {                "must": [             {                 "bool":                  {                        "should": [                     {                         "match":                          {                             "title": "simpsons"                         }                     },                      {                         "match": {                             "original_title": "simpsons"                         }                     }]                 }             },              {                 "match":                  {                     "category": 42                 }             }         ]}     } } 

however, if use:

get /epg/_search 

which should search types in index, doesn't work. in advance.


Comments