2.写给自己
沉默,淡定。 正文
第一章、solr简介 solr和Lucene
要是讲solr必须先提下Apache Lucene。
说起Apache Lucene,可以说无人不知,无人不晓,但是说道Apache Solr,恐怕知道的不多。看看老外是如何比较这两个的
Lucene Refresher
·Lucene is a full-text search library
·Add documents to an index via IndexWriter
·A document is a a collection of fields
·No config files, dynamic field typing
·Flexible text analysis – tokenizers, filters
·Search for documents via IndexSearcher
Hits = search(Query,Filter,Sort,topN)
·Scoring: tf * idf * lengthNorm
What Is Solr
·A full text search server based on Lucene
·XML/HTTP Interfaces
·Loose Schema to define types and fields
·Web Administration Interface
·Extensive Caching
·Index Replication
·Extensible Open Architecture
·Written in Java5, deployable as a WAR