摘要: 一.Stats1.stats2.stats.field3.stats.facet二.Terms1.terms:The component name. Set to true to turn on the TermsComponent2.terms.fl:Required. Specify the field to look up terms in.3.terms.lower:Optional. The lower bound term to start at. The TermEnum will start at the next term after this term in the dic 阅读全文
posted @ 2012-08-30 21:24 TerryLiang 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: 一.QueryElevation1.enableElevation2.exclusive3.forceElevation4.editorialMarkerFieldName:The name of the field that editorial results will be written out as when using the QueryElevationComponent, which automatically configures the EditorialMarkerFactory. The default name is "elevated"5.excl 阅读全文
posted @ 2012-08-30 21:24 TerryLiang 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 一.Group1.group.query2.group.field3.group.func4.group.sort5.group.limit:the limit for the number of documents in each group6.group.offset:the offset for the doclist of each group7.group.main:treat the first group result as the main result. true/false8.group.format:treat the first group result as the 阅读全文
posted @ 2012-08-30 21:24 TerryLiang 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: 一.DisMax1.tie:query and init param for tiebreaker value2.qf:query and init param for query fields3.pf:query and init param for phrase boost fields4.pf2:query and init param for bigram phrase boost fields5.pf3:query and init param for trigram phrase boost fields6.mm:query and init param for MinShould 阅读全文
posted @ 2012-08-30 21:23 TerryLiang 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 一.Analysis1.analysis.query:Holds the query to be analyzed2.analysis.showmatch:Set totrueto indicate that the index tokens that match query tokens should be marked as "mateched"3.analysis.fieldname:Holds the value of the field which should be analyzed4.analysis.fieldtype:Holds a comma-separ 阅读全文
posted @ 2012-08-30 21:23 TerryLiang 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 最近几次离职都很突然,也都是很突然下的决定。不过这次离开凡客,也是自己最愧疚的一次,因为没有坚守自己的承诺。也不想给自己找什么理由了,就是想走。写了这么多年程序,看了这么多书,接触了这么多行业,还是觉得自己很浮躁,不踏实。也许人生在世,学习是没有尽头的。或许自己没有实际的目标?不清楚。离职前,不管什么原因,其实自己心情都不好,说不上为什么。希望自己可以坚持下去,在一个新的行业里面,能多沉淀沉淀。 阅读全文
posted @ 2012-08-25 13:33 TerryLiang 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 工作告一段落,习惯性地总结总结。做了一个产品“逛”,其实用到的算法很简单,就是查找用户喜欢过的商品的相似商品。代码量不多,基本都是我一个人完成的吧,包括所有的服务端设计实现、数据库设计、服务器部署。终于实现了我的一个“梦想”,把scala用在了工作中,很喜欢这门语言。工作中的难点到不在于算法问题,而在于倒腾数据,怎么展现符合产品需求的数据,好看的数据,用户喜欢的数据。我到目前为止,还没有做过让自己满意的工作,做到最后,自己总有不满意的地方,不知道这个算不算我的一个毛病?!最求自认为的完美,却永远达不到自己想要的完美。工作基本都是自己给自己找动力,说实话,凡客的技术水平差很多,好多都在滥用,也不 阅读全文
posted @ 2012-08-06 10:50 TerryLiang 阅读(458) 评论(4) 推荐(1) 编辑
摘要: 用Scala开发项目大概有4个月了,当初选择Scala的时候出于两点考虑:一是我对Java还比较熟悉,可以让我很快上手;二是Scala简洁的语法,可以让我少写很多代码。下面是本人的一些总结列表。1.Scala的官方网站http://www.scala-lang.org/,Scala Eclipse的插件地址http://scala-ide.org/2.推荐一篇写的很好的文章http://qiujj.com/static/Scala-Handbook.htm3. 一个用于实现try finally关闭资源的trait1traitDisposable{2defusing[T<:{defclo 阅读全文
posted @ 2012-07-31 10:15 TerryLiang 阅读(1726) 评论(9) 推荐(0) 编辑
摘要: 这个月月末准备办一个免费的Solr交流会,有兴趣的同学可以加入到QQ群:181963043报名参加。主要内容:1:Solr的基本架构和应用2:Solr分布式3:Solr性能优化4:基于Solr的全文检索架构5:Solr开发 6:EasyNet.Solr的应用地点可能在北京东四十条附近。 阅读全文
posted @ 2012-05-11 09:37 TerryLiang 阅读(732) 评论(1) 推荐(0) 编辑
摘要: /etc/sysctl.conf内核配置文件优化:# Kernel sysctl configuration file for Red Hat Linux## For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and# sysctl.conf(5) for more details.# Controls IP packet forwardingnet.ipv4.ip_forward = 0# Controls source route verificationnet.ipv4.conf.default.rp_filter 阅读全文
posted @ 2012-05-09 11:08 TerryLiang 阅读(1105) 评论(0) 推荐(1) 编辑