SOLR, what is SOLR, is what you want to eat "rancid", can't eat, out of date~Well ... A joke, pronunciation is ' search ', dedicated to search for an open source framework, lunce do not say, do not use, troubleLet's talk about SOLR. The latest update is 6.0, April 7-8 Update, elder brother is not too like to use the new version, more or less will have bug,centos7
Solr learning Summary (7) Overall Solr search engine architecture, solr Search Engine
After some efforts, I finally summarized all the solr content I know. We have discussed the installation and configuration of solr, the use of web management backend, the Query parameters
, and when some nodes fail, they are automatically assigned other nodes to work instead.
Disadvantages
There is only one developer (the current Elasticsearch GitHub organization is more than that, already has a fairly active maintainer)
Not enough automatic (not suitable for the current new index warmup API)
About SOLRSOLR (read as "solar") is an open source enterprise search platform for the Apache Lucene project. Its main func
.
Omitheader: Sets whether to ignore the query result return header information, the default is "false".
two. query Syntax
1. Match All documents: *:*
2. Force, block, and optional queries:1) Mandatory: Must be included in the query results (for example, only entry name containing the word make) Solr/lucene statement:+make, +make +up, +ma Ke +up +kiss2) Prohibited: (for example, all documents except tho
" useSmart="false"/>"query"> class="org.wltea.analyzer.lucene.IKAnalyzerSolrFactory" useSmart="true"/>
Solrconfig:If the schema is defined as SOLR's model, then Solrconfig is the SOLR configuration, which defines SOLR if it handles many requests such as indexing, highlighting, searching, and also specifies a cache policy, with more elements including:
Specify the index data path
Recently when using SOLR, the configuration will have some problems, log in the print out the logs, but still do not know why such errors occurred. So want to learn the relevant SOLR source code, the following is how to build SOLR debugging environment steps.SOLR debugging environment to build, first download source code.Various versions of the source code can be
Tags: complete list using leave empty page base connection requestEnvironment construction 1, to Apache download SOLR, Address: http://mirrors.hust.edu.cn/apache/lucene/solr/ 2. Unzip to a directory 3. CD into D:\Solr\solr-4.10.3\example 4. Execute the server by "Java-jar St
Solr learning Summary (4) Solr query parameters, solr Parameters
It will not be involved today. net and database operations, mainly to summarize the Solr query parameters, or that sentence, only the basic content and query syntax of solr are clearly understood, and follow-up
SOLR is an enterprise-level Search Server Based on the Lucene Java library. This article records the installation process of SOLR with the latest version 1.4.1. 1) download the latest version 1.4.1 from the SOLR official website http://developere.apache.org/solr. open the do
One, SOLR study related information
1. Official materials
(1) QuickStart: http://lucene.apache.org/solr/4_9_0/tutorial.html, with its own example project, provides a quick introduction to the basic use of SOLR.
(2) api:http://lucene.apache.org/solr/4_9_0/index.html
(3) reference:pdf format, apache-
[Linux] install solr 4.10.3 and centossolr on CentOSWhat is Solr?
Solr is a top-level open-source project under Apache developed using Java. It is a full-text search Server Based on Lucene. Solr provides a richer query language than Luce
model or a vector space model for specific searches.Show resultsYou know2.3 Other modules of the search programManagement interfaceLucene Management provides a number of configuration options for developersAnalysis interfaceLucene does not provide analysis toolsDistributed searchTwo basic ways: if the amount of data processed is large, you can divide the data into small pieces, let multiple servers search for the corresponding parts, and then merge the search results of each part into the total
Tomcat under SOLR installation configuration
Because SOLR is based on Java development, SOLR is well deployed in both Windows and Linux, but because SOLR provides some shell scripts for testing and managing and maintaining convenience, it is recommended to install Linux on production deployments. Test time can be used
automatically creates a user named SOLR. You can also use the "-u" parameter to specify a user name yourself. The installation script will set the owner of the installation-related directory (/OPT/SOLR and VAR/SOLR) to this user.To download a compressed package:Official website: http://lucene.apache.org/solr/wget Down
module by yourself and use the Shortest Path splitting method, you can refer to the online materials and demo source code.The cpu usage is high when the index is added. When the access volume is large, the cpu idle is 0.The default scoring mechanism is not reasonable and needs to be customized according to your own business.
As a whole, lucene is difficult to use. It must be expanded in the above aspects to serve as a commercial search engine.
Elasti
displayed in text after the drop-down list
MaxItems: the maximum number of items displayed in the drop-down box (if there are too many items displayed, there will be latency. The test latency is caused by the change of the data set in the background banding and the new interface, it's not about lucene's efficiency)
ItemTemplate: You can understand it when using WPF. Set the layout of data in the drop-down list. In this way, we have high scalability and flexibility.
1. Overall Thinking
(1) cr
Use SOLR to quickly implement full-text search for Django. Http://fzuslideblog.appspot.com/2010/03/25/django_solr_search.htmlsource address
Django does not provide full-text search, but there are many options for adding full-text search to Django. You can use sphinx, Lucene, xapian, and so on. Here we use Lucene-based full-text search server
Today, we collected some information about the spelling checker and tried to use the spelling checker.--= encountered a lot of problemsFour configurations for spell checking now I'm just a success, half of it.---------------------------------The spell checker feature provides a better user experience when searching, so the main search engine has this feature. Before this, I would like to briefly say what is the spelling checker, in fact, very good understanding, is that you enter the search term
Com.lucene.index.test;import Java.util.list;import Java.util.concurrent.countdownlatch;import Java.util.concurrent.executorservice;import Java.util.concurrent.executors;import Org.apache.lucene.index.indexwriter;import Com.lucene.bean.filebean;import Com.lucene.index.filebeanindex;import Com.lucene.index.util.fileutil;public class Testindex {public static void main (string[] args) {try {ListAbove that is multi-threaded multi-Directory index, we have any questions about the welcome exchange;Step
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.