elasticsearch filtered and the empty string plus some small filters

{
    "query":{
        "constant_score":{
            "filter":{
                "bool":{
                    "must_not":{
                        "bool":{
                            "must_not":[
                                {
                                    "wildcard":{
                                        "content":"*"
                                    }
                                },
                                {
                                    "term":{
                                        "user_id":241448230
                                    }
                                }
                            ]
                        }
                    },
                    "must":[
                        {
                            "term":{
                                "is_online":true
                            }
                        },
                        {
                            "term":{
                                "is_deleted":false
                            }
                        },
                        {
                            "term":{
                                "pictorial_id":1
                            }
                        }
                    ]
                }
            }
        }
    }
}

Guess you like

Origin www.cnblogs.com/lixiaofang-123/p/11543908.html