07 2013 档案

摘要:Solr的一些查询参数fl: 是逗号分隔的列表,用来指定文档结果中应返回的 Field 集。默认为 “*”,指所有的字段。defType: 指定query parser,常用defType=lucene, defType=dismax, defType=edismaxq: query。q.alt: 当q字段为空时,用于设置缺省的query,通常设置q.alt为*:*。qf: query fields,指定solr从哪些field中搜索。pf: 用于指定一组field,当query完全匹配pf指定的某一个field时,来进行boost。简言之pf的作用是boosting phrases over 阅读全文
posted @ 2013-07-19 12:25 美铝 阅读(320) 评论(0) 推荐(0)
摘要:String url = "http://xapp10-017.i.ajkdns.com:8081/solr/"; //替换成服务器地址 SolrServer server = new HttpSolrServer(url); List brokerList =new ArrayList(); Integer brokerId=0; Integer size=10; for (;;) { HashMap map= new HashMap(); ... 阅读全文
posted @ 2013-07-19 12:13 美铝 阅读(501) 评论(1) 推荐(0)