全文预览

olr的Nested Doc的详解及应用

上传者:火锅鸡 |  格式:pdf  |  页数:7 |  大小:875KB

文档介绍
Params.get( "pt" , "0.0,0.0" );\r6. String d = localParams.get( "d" , "100" );\r7. String terms= localParams . get( "termList" , "www.jiekeqipai.\rnet" );\r8. String parentQ = "{ !terms f=termcount}"+term\r9. String q = "{ ! geofilt sfield="+sfield+" pt=" + pt+" d="+d+\r"}";\r10. logger.info( "child query: "+ q);\r11. if( localParams instanceof ModifiableSolrParams){\r12. ((Modi fiableSolrParams) localParams). set("whi ch" , "typ\re: p" );\r13. ((ModifiableSolrParams) localParams) . set("v",q);\r14. }\r15. QParser parser = createBJQParser(q, localParams, param\rs, req);\r16. return parser;\r17. }\r即自己在解析时传入拼好的值,则能有效的避免这个\r问 题 ,在查询 时也就只用传入我们 需要后续拼接的参\r数即可

收藏

分享

举报
下载此文档