bbossgroups / bboss-elasticsearch

the best elasticsearch highlevel java rest client api-----bboss
Apache License 2.0
527 stars 139 forks source link

serialJson=true疑问 #52

Open liyao1718628879 opened 2 years ago

liyao1718628879 commented 2 years ago

"terms": { "notice_code": #[announcementCodes,serialJson = true] }

announcementCodes为list\<String>,为甚么序列化后没有双引号,以下为序列后的实际结果,怎么才能加上双引号 "terms": { "notice_code": [category_bndbg_szsh, category_yjdbg_szsh] }

yin-bp commented 2 years ago

Hi,@liyao1718628879

你确定list里面的是字符串么,是的话,肯定是没有问题的,你是不是把数据统一处理成一个串,放到list里面了额