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
I. SOLR learning materials
1. Official Materials
(1) Quick Start: getting started.
(2) API: http://lucene.apache.org/solr/4_9_0/index.html
(3) Reference: format, apache-solr-ref-guide-4.9.pdf
2. Books
(1) SOLR in action, based on version 4.7, is strongly recommended. This book is suitable for learning, and the of
errors caused SOLR to return an error page instead of the result of index success.
Where the above HTML code is formatted after rendering:
HTTP Status 405-http method POST is not supported by this URL
Type Status Report
Message HTTP method POST is not a supported by this URL
Description The specified HTTP method is not a allowed for the requested resource. Apache tomcat/7.0.54 Workaround:
After using Tomcat to deploy
Important : Similar to configuration options, the AutoComplete plug-in method is
not called directly , and is
autocomplete() indirectly invoked through methods. For example:
$ ("#title"). AutoComplete ("Method name", "Parameter 1", "Parameter 2");List of AutoComplete methods close ()Turn off the menu for a
DOCTYPE HTML>HTML>Head>Metaname= "Content-type"content= "text/html; CHARSET=GBK">title>JQuery UI Autocomplete-Default featurestitle>Linkrel= "stylesheet"href= "//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">Scriptsrc= "//code.jquery.com/jquery-1.10.2.js">Script>Scriptsrc= "//code.jquery.com/ui/1.11.4/jquery-ui.js">Script>Linkrel= "stylesheet"href= "/resources/demos/style.css">Script> $(function() { //here the data is in the for
SOLR is equipped with a word breaker, but the word breaker has a filter with uppercase converted to lowercase, and the number is filtered. Like 123 Chinese ABC. 123 will be filtered out, so only check 1|12|123 will fail."SOLR numeric characters can not search for a problem" this blog post is more detailed, I am studying this article.According to the account to search, when the account in the database is an
Software environment:
Operating System: rehl 5
JDK: JDK 1.6.0 _ 16
Tomcat: 6.0.20
I. Install JDK
Run:
# Sh/home/apps/jdk-6u16-linux-i586-rpm.bin
Install the SDK in the/usr/Java directory by default.
After the installation is complete, run:
# Java-version
The current JRE version is displayed. If it is not 1.6.0 _ 16 (earlier version 1.4 is installed by default), you need to modify the configuration. Run:
# Vi/etc/profile
Add the following content:
Java_home =/usr/Java/jdk1.6.0 _ 16
Classpath =.:
Take a morning to learn about SOLR and solve the problem:
First understand what SOLR is:
SOLR is a high-performance, using JAVA5 development, SOLR based on Lucene's Full-text search server. At the same time, it has been extended to provide a richer query language than Lucene, while achieving configurable, scalable and
1. How to configure the spring DATASOLR in the development environment to use the embedded SOLR Server According to the official Case Project (Spring-data-book), find the class with embedded, that is, the use of embedded solrserver, the advantage: You can learn to use spring data SOLR without having to configure the environment yourself, Note: In this class, within the function that is @after annotated, con
SOLR Study Notes (2) Examples of SOLR
The database I use here is mysql. First, integrate MySQL
1. Create a table
-- ------------------------------ Table structure for `documents`-- ----------------------------DROP TABLE IF EXISTS `documents`;CREATE TABLE `documents` ( `id` int(11) NOT NULL auto_increment, `date_added` datetime NOT NULL, `title` varchar(255) NOT NULL, `content` text NOT NULL, PRIMARY KE
Objective:The SOLR server is set up, and after the data is imported, it is applied to the project. So how do you integrate and apply SOLR in the project?Next, you'll integrate and apply SOLRI. Integration1. Introduction of the JAR package Properties> spring.data.solr.version>2.1.1.RELEASEspring.data.solr.version> Properties> dependencymanagement> Dependencies> Dependency>
.
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 those with Word believe)
Read Catalogue
Introduction
What is Lunece?
What is SOLR?
Java Environment Building
Variable configuration of Java environment construction
End
IntroductionA gentleman is born non-dissimilar also, good false in things also.Java and. Net which is good, we do not need to water fights, I think language is only our tool to achieve the purpose, a business scenario which is handy (including all languages except the two), of
[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 search server developed by Java 5 based on Lucene. At the same time, it is expanded to provide a richer query language
Supported data sourcesJQuery UI Autocomplete mainly supports two data formats: String Array and JSON.The common Array format is as follows:Copy codeThe Code is as follows: ["cnblogs", "", ""]For arrays in JSON format, the following attributes are required: label and value:Copy codeThe Code is as follows: [{label: "", value: "cnblogs" },{ label: "", value: ""}]The label attribute is used to display in the autocompl
Supported data sourcesThe JQuery UI autocomplete mainly supports string array, json two data formats.
The normal array format is nothing special, as follows:
Copy Code code as follows:
["Cnblogs", "Blog Park", "embarrassing month"]
For JSON-formatted array, the: Label, Value property is required, as follows:
Copy Code code as follows:
[{label: "blog Park", Value: "Cnblogs"}, {label: "Embarrassing Month", Value: "The M
to the sort mechanism that SOLR has defaulted on, default VSM, default Sortbyfield, default function collection including their combinations,The default booleanquery, Phrasequery, Luceneparser, Dismax parser, and so on, cannot meet the ordering requirements.Then you need to unveil and introduce your own sort.(3) sequencing is a dynamic processAbsolutely not once set, permanently valid. With changes in the data set, changes in business scenarios, chan
In a Linux environment, deploy Solr in tomcat7, import Mysql database data, regularly update indexes, and solrtomcat7What is solr?
Solr is a full-text search Server Based on Lucene. It expands and optimizes Lucene.Preparations
First, download the following software package:
JDK8: jdk-8u60-linux-x64.tar.gz
TOMCAT8: apache-tomcat-8.5.4.zip
SOLR5.5.3:
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.