Copyright information: You can reprint, reprint, please be sure to hyperlink form to indicate the original source of the article, that is the following statement.
Original source: Click to open the link
The original text also describes the deployment of SOLR, because I have already had an article before, so omit
Application design index structure for search forum posts:
Field
Description
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
projects were made by the same Apache Software Foundation development team. When referring to technology or products, LUCENE/SOLR or Solr/lucene are the same. Iii. download of SOLR solr Download Link: http://lucene.apache.org/solr/ , this machine is using the
1, first download good solr, I use solr1.3,:Windows version http://labs.xiaonei.com/apache-m ... ache-solr-1.3.0.zipLinux version http://labs.xiaonei.com/apache-m ... ache-solr-1.3.0.tgz2, ready to run the container, I use is tomcat6.0.20. If you are playing, you can also not be prepared specifically for easy, you just unzip the
folder and copy the E:\solr-4.9.1\example\ Resources\log4j.properties file to the Classes folder, modify the Log4j.properties file, and modify the value of "Log4j.appender.file.File" to ". /logs/solr.log ";Figure 1-12 SOLR running successfully in Tomcat 11. Delete the Solr.war file under the E:\apache-tomcat-8.0.9\webapps folder, restart Tomcat, enter the http:
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
Solrconfig.xml This configuration file can be found in the E:\Work\solr-4.2.0-src-idea\solr\example\solr\collection1\conf you downloaded the SOLR package to install the Extract directory, This configuration file content is a bit more, the main content is: the use of the Lib
), multivalued (whether there are multiple values), and so on.
Cases:
XML code
The definition of field is quite important, there are a few tricks to note that there may be many worthwhile fields as far as possible to set the multivalued property to true, avoid building an index is thrown error, if you do not need to store the corresponding field value, try to set the stored property to False.
3 It is recommended to create a copy field that copies all the entire text fields to a single field for
DocumentDocument is the most basic unit of the SOLR index (verb, indexing) and search, which resembles a record in a relational database table and can contain one or more fields (field), each containing a name and text value. A field can be stored in an index while it is indexed, and the value of the field can be returned when the search is searched, and usually
Q: for pinyin and Pinyin first letter support, when you search for goods, if you want to enter the pinyin and pinyin first letter to give the product information, how to do?There are 2 ways to implement them, but they are in fact corresponding.
using Lucene to achieve
1. Build an index, more than one index field, that is, pinyin and pinyin first letter of the 2 fields. A field that is merged.(Pinyin and pinyin initials can be obtained by Pinyi
SOLR introduces SOLR roleSOLR is a high performance, using Java5 development, based on Lucene Full-Text Search server. At the same time, it is extended to provide a richer query language than Lucene , while it is configurable, extensible, and optimized for query performance, and provides a complete functional management interface, a very good Full-Text
can define multiple values for this field. For example, if an application manages content, you can specify multiple titles for an article. You can usecatFields (or custom similar fields) to capture all titles.
Listing 4 shows the example/exampledocs/ipod_other.xml file, which represents two entries in the iPod attachment category.
Listing 4. Data formatted in the default
SOLR
1. Solr server setup
LJava environment setup
Download linux JDK 6 from this website:
Http://java.sun.com/javase/downloads/index.jsp
After installing JDK, edit/ect/profile, add these code to the end of the file
JAVA_HOME =/usr/java/jdk1.6.0 _ 16
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME
Export PATH
Export CLASSPATH
/Usr/java/jdk1.
young to work with a community, it is free to move forward without any consensus or collaboration with others (users or developers), backwards compatibility, or any other more mature software that is often required to process.As a result, it exposes some of the most popular features before SOLR (for example, near real-time search, English: Close real-time
1. first assume that my data fields are: Name, tel, address preset Search is the Name field, if the data to be searched is exactly the name field, you do not need to specify the search field name. 2. Query Rules:If you want to query a specific field (not a preset field), precede the query with the field name plus ":" (No "sign") symbol,For example: Address: tel:
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
Tags: mongodb solr search engine ubuntu JSONEnvironment: Ubuntu 12.04 Solr 5.1.0 MongoDB db version:v2.0.4 1. SOLR Configuration and MongoDB installationSOLR installation configuration is now very simple, refer to the Official document: Http://lucene.apache.org/solr/quick
[Java] Solr video tutorial and solr video tutorial for enterprise distributed search platform
Course BackgroundDistributed search engines that are highly available, scalable, and fault-tolerant. Solr is a high-performance full-text
Integrates PHP applications and Solr search engines. Why do you need a search engine? Is database alone insufficient? If you only create a small website, the database is enough. But when you create a neutral or large application, the search engine is more clear why do you need a se
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.