`
文章列表
Install tomcat7 #sudo apt-get update #sudo apt-get install tomcat7 #sudo apt-get install  tomcat7-admin http://localhost:8080/ #sudo vi /etc/tomcat7/tomcat-users.xml <tomcat-users> <user username="admin" password="password" roles="manager-gui,admin-gui&q ...
The anatomy of a Solr request Request handlers Request handlers are the entry points for essentially all requests to Solr. Their job is to receive a request, perform some function, and return a response to the client.    http://localhost:8983/solr/collection1/select/ http://localhost:8983/solr ...

Solr:Text analysis

    博客分类:
  • Solr
           ------------------------------------------------------------------------------------------------------------------------------------ Defining a custom field type for microblog text       --------------------------------------------------------------------------------------------- ...

Solr: Indexing 2

    博客分类:
  • Solr
 
Field types for structured nontext fields In general, Solr provides a number of built-in field types for structured data, such as numbers, dates, and geo location fields.   String fields Solr provides the string field type for fields that contain structured values that shouldn’t be altered in an ...

Solr: Indexing 1

    博客分类:
  • Solr
 
At a high level, the Solr indexing process distills down to three key tasks:  Convert a document from its native format into a format supported by Solr,such as XML or JSON. Add the document to Solr using one of several well-defined interfaces, typically HTTP POST. Configure Solr to apply trans ...

Solr: Configuring Solr

    博客分类:
  • Solr
           --------------------------------------------------------------------------------------------------------------------------------------Query request handling   --------------------------------------------------------------------------------------------------------------------------- ...

Solr:Key Solr concepts

    博客分类:
  • Solr
Document A document, then, is a collection of fields that map to particular field types defined in a schema. Each field in a document has its content analyzed according to its field type, and the results of that analysis are saved into a search index in order to later retrieve the document by sen ...

Solr: Install

    博客分类:
  • Solr
Download #wget https://archive.apache.org/dist/lucene/solr/4.7.0/solr-4.7.0.tgz   Extract #tar zxf solr-4.7.0.tgz  -C ~/   Start #cd ~/solr-4.7.0/example #java -jar start.jar   Adimn http://localhost:8983/solr   -------------------------------------------------------------------------- ...

Solr: Introduction

    博客分类:
  • Solr
Solr  is  Searching On Lucene w/Replication Specifically, Solr is a scalable, ready-to-deploy enterprise search engine that’s optimized to search large volumes of text-centric data and return results sorted by relevance.   Scalable—Solr scales by distributing work (indexing and query processing ...
https://issues.apache.org/jira/browse/SOLR-1395 http://my.oschina.net/zhzhenqin/blog/83746   Solrcloud http://my.oschina.net/zhzhenqin/blog/84995 http://www.cnblogs.com/phinecos/archive/2012/02/10/2345634.html http://www.chepoo.com/solrcloud-introduction.html
   Directory dir = FSDirectory.open(new File("/path/to/index")); IndexReader reader = IndexReader.open(dir); IndexSearcher searcher = new IndexSearcher(reader); QueryParser parser = new QueryParser(Version.LUCENE_30,"contents",new SimpleAnalyzer()); Query query = parser.par ...
Although most content is textual in nature, in many cases handling numeric or date/time values is crucial. In a commerce setting, the product’s price, and perhaps other numeric attributes like weight and height, are clearly important. A video search engine may index the duration of each video. Press ...
Not all documents and fields are created equal—or at least you can make sure that’s the case by using boosting. Boosting may be done during indexing, as we describe here, or during searching. Search-time boosting is more dynamic, because every search can separately choose to boost or not to boost wi ...
INDEX SEGMENTS Every Lucene index consists of one or more segments. Each segment is a standalone index, holding a subset of all indexed documents. A new segment is created whenever the writer flushes buffered added documents and pending deletions into the directory. At search time, each segment is ...
IndexSearcher   IndexSearcher is to searching what IndexWriter is to indexing: the central link to the index that exposes several search methods. You can think of IndexSearcher as a class that opens an index in a read-only mode. It requires a Directory instance, holding the previously created inde ...
Global site tag (gtag.js) - Google Analytics