是否有任何工具或简单的技术可以将复杂的 ES 布尔查询迁移到 Solr/Solrj 查询。
我知道那种must => AND
should => OR
需要改变的。在此处查询示例 -
{
"bool": {
"must": [
{
"term": {
"locale": {
"value": "XXX",
"boost": 1
}
}
},
{
"terms": {
"contentType": [
"YYY",
"ZZZ"
],
"boost": 1
}
},
{
"terms": {
"docId": [
"ABC",
"JKL"
],
"boost": 1
}
},
{
"term": {
"unPublished": {
"value": false,
"boost": 1
}
}
}
],
"disable_coord": false,
"adjust_pure_negative": true,
"boost": 1
}
}