elasticsearch过滤空字符串并加一些需求

mac2022-06-30  32

{    "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                            }                        }                    ]                }            }        }    }}

转载于:https://www.cnblogs.com/lixiaofang-123/p/11543908.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)