我在solr界面上搜索了一个单词,例如“找到”,其突出显示结果部分丢失enter image description here enter image description here
通过示例,我将此网址称为:
http://127.0.0.1:8983/solr/rds_log_index/select?df=text&hl=on&indent=on&q=found&wt=json
我得到:
...},
"highlighting":{
"apiv1.rdslog.12":{},
"apiv1.rdslog.143":{},
"apiv1.rdslog.154":{},
"apiv1.rdslog.18":{
"text":[" not <em>found</em>\\n05-29 10:00:45.993 18659 18659 W ResourceType: No package identifier when getting name",
" modules: no such module <em>found</em>: com.android.deskclocklib.res20180703\\n05-29 10:00:46.003 18659 18659 W"]},
"apiv1.rdslog.17":{},
"apiv1.rdslog.48":{},
"apiv1.rdslog.139":{
"text":[" 0x00000000\\n05-31 11:31:18.239 16460 16460 W CtaManagerFactory: CtaManagerFactoryImpl not <em>found</em>\\n05-31 11:31",
" modules: no such module <em>found</em>: com.android.deskclocklib.res20180703\\n05-31 11:31:18.248 16460 16460 W",
" modules: no such module <em>found</em>: com.android.deskclocklib.res20190122\\n05-31 11:31:18.252 16460 16460 W"]},
"apiv1.rdslog.168":{
"text":[" 541 D wifi2agps: scan result, <em>found</em> 4 APs\\n06-05 17:26:23.502 541 541 D agps : [WIFI2AGPS"]},
"apiv1.rdslog.172":{},
"apiv1.rdslog.26":{}}}
其搜索结果正确,但突出显示信息丢失