View gist:f6b1434a94bf21a80192
if (isset($ad->sourceApp) && $ad->sourceApp != '1' && $ad->sourceApp != '2' ) return;
if (isset($ad->sourceApp) && !in_array(intval($ad->sourceApp), [1, 2])) return;
if (!(isset($ad->sourceApp) && ($ad->sourceApp == '1' || $ad->sourceApp == '2'))) return;
View doc2.json
{
"doc": {
"id": "311679842",
"title": "06\u5e74\u4e0a\u724c \u82cf\u5dde\u724c\u7167 \u4e0a\u6d77\u4eba\u4e00\u624b\u8f66 \u4fdd\u517b\u7edd\u5bf9\u4eba\u53c2\u4f3a",
"content": "06\u5e74\u4e0a\u724c \u82cf\u5dde\u724c\u7167 \u4e0a\u6d77\u4eba\u4e00\u624b\u8f66 \u4fdd\u517b\u7edd\u5bf9\u4eba\u53c2\u4f3a\n\u8054\u7cfb\u65b9\u5f0f\uff1a18121253138\n\u884c\u9a76\u91cc\u7a0b:7\u4e07\u516c\u91cc\n\u8f66\u54c1\u724c:\u94c3\u6728\n\u5177\u4f53\u5730\u70b9:\u6885\u9647\u897f\u8def1020\u53f7\u7f57\u9526\u8def\u53e3\n\u5e74\u4efd:2006\u5e74\n06\u5e74\u4e0a\u724c \u82cf\u5dde\u724c\u7167 \u4e0a\u6d77\u4eba\u4e00\u624b\u8f66 \u4fdd\u517b\u7edd\u5bf9\u4eba\u53c2\u4f3a\u5019 \u7edd\u5bf9\u4e0d\u6562\u6020\u6162 7\u4e07\u516c\u91cc\u5b8c\u7f8e\u91cc\u7a0b\u7edd\u5bf9\u5b9e\u6570 \u53ef\u67e5\u770b \u5168\u8f66\u7edd\u5bf9\u6ca1\u6709\u5927\u4e8b\u6545 \u5c0f\u78b0\u64e6\u80af\u5b9a\u6709 \u767d\u8272\u6781\u5c111.3\u624b\u52a8\u9ad8\u914d\u96e8\u71d5 \u5c0f\u5c0f\u6539\u88c5 \u8010\u770b\u8010\u7528 \u5173\u9
View query2.json
{
"query": {
"filtered": {
"query": {
"range": {
"\u4ef7\u683c": {
"from": "3",
"to": "5"
}
}
View doc1.json
{
"doc": {
"id": "311684921",
"title": "test \u5176\u4ed6\u7c7b\u578b\u7684\u8f66\u5b50\uff0c\u5728web\u53d1\u7684",
"categoryNames": "\u8f66\u8f86,\u4e8c\u624b\u8f66\u8f7f\u8f66",
"areaNames": [
"\u4e0a\u6d77",
"\u5d07\u660e",
"\u57ce\u6865"
],
View query.json
{
"query": {
"filtered": {
"query": {
"match_all": {
}
},
"filter": {
"bool": {
View es_metadata_subscribe
{
"Ad" : {
"properties" : {
"id" : {
"type" : "long",
"store" : "yes"
},
"title" : {
"type" : "string",
"index" : "analyzed",
View es_metadata_basic
{
"settings" : {
"number_of_shards" : 10,
"number_of_replicas" : 1
},
"mappings":{
"_default_" : {
"date_detection" : false,
"numeric_detection" : true,
"store" : "no",