The previous talk about SOLR's installation, according to the rationale, this time should be about. NET and the contents of the database, C # How to manipulate SOLR indexes and so on. But I would like to start with some basic content, such as SOLR query parameter usage instructions and the use of SOLR's own web management system. Only first understand the basic content of
Install tomcat: The code is as follows:Copy code Apt-get updateApt-get install tomcat6 tomcat6-admin Download and install apachesolr: The code is as follows:Copy code Wget http://mirrors.cnnic.cn/apache/lucene/solr/4.7.2/solr-4.7.2.tgzTar-vxf solr-4.7.2.tgzMkdir/opt/solrSolr-4.4.0/example/
I tried the following three open-source Chinese Word divider in SOLR, two of which were not available because the SOLR version was too high. I finally decompiled the jar package and found the reason, the following briefly describes three open source Chinese Word splitters.
Ding jieniu: The last code submission on Google Code was 2008.6 months. It was not very active, but many people were using it.
Mmseg4j:
I QQ group also has a lot of technical documents, I hope to provide you with some help (non-technical not to add).QQ Group: 281442983 (click the link to join the group: http://jq.qq.com/?_wv=1027k=29LoD19)1. Preparing the basic EnvironmentBased on Jdk1.7+tomcat7+linux, the configuration of these things will not be said.2. Go to the official website to download Solr5.5zip's packagehttp://mirror.bit.edu.cn/apache/lucene/
Lucene-full-text index and lucene incremental Index
Recently, I have been familiar with lucene and many people have heard it before. With curiosity, I started to understand lucene. What impressed me the most is that it applies index tables in many ways, this tool is fast because it references a large number of index ta
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
At present, more suitable for Java search engine construction will generally choose SOLR, the underlying operation will use SOLRJ interaction, in fact, SOLR is based on Lucene. The implementation process found that many of the Web documents on Java Integration SOLR are based on the solr5+ version, and for the solr7+ ve
. For details, refer to lingpipe's competition. Recommendation engine: mainly includes Apache mahout, duine framework, and Singular Value Decomposition (SVD). For other packages, see open source collaborative filtering written in Java. Search engine problems: Lucene, SOLR, sphtasks, Hibernate search, etc. 2) common recommendation engine algorithms are relatively complex and have a low entry threshold. 3)
Case Development Based on lucene: search index and lucene Index
Reprinted please indicate the source: http://blog.csdn.net/xiaojimanman/article/details/42884921
The index data in this example comes from the index created in the previous blog. The index contains two documents, each of which contains two domain names and content.
Index Search demo
Let's look at a simple index search demo program before intro
1.SOLR is what.
SOLR is an open source, Lucene-based search server that is easy to add to WEB applications. SOLR provides a level search (that is, statistics), hit highlighting, and support for multiple output formats, including formats such as XML/XSLT and JSON. It is easy to install and configure, and comes with an
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
Lucene is:
An efficient, scalable, full-text retrieval library.
All are implemented in Java without configuration.
Only text file indexes and search are supported ).
It is not responsible for the process of extracting plain text files from files in other formats or capturing files from the network.
In Lucene in action, Lucene's architecture and process are as follows,
Descriptio
Full-text retrieval of Lucene index configuration and creation, full-text retrieval of lucene IndexLucene
Is an open-source full-text search engine toolkit, but it is not a complete full-text search engine, but a full-text search engine architecture, provides a complete query engine and index engine, some text analysis engines (two Western languages: English and German ).
First, Lucene basic introduction:
Basic information: Lucene is an open source full-text Search engine toolkit for the Apache Software Foundation, a full-text search engine architecture that provides a complete query engine and indexing engine, some text analysis engines. Lucene's goal is to provide software developers with a simple and easy-to-use toolkit to facilitate full-text retrieval in the ta
Tags: importing data solrIn the previous blog post, the deployment of SOLR in Tomcat was completed, a custom core was added to SOLR, and an IK word breaker was introduced.So how do you import the local MySQL data into SOLR?Preparatory work:1. mysql Data source: User table in MyUser Library (8 data)/* Navicatmysqldatatransfer sourceserver :localhost sourceserverve
First, prepare the software
Install Java1.8 and Tomcat9 in advance.
Download Solr6.1, website location: http://mirrors.tuna.tsinghua.edu.cn/apache/lucene/solr/6.1.0/
3. Extracting filesSecond, installation1. Copy the WebApp folder under the Solr-6.1.0\server\solr-webapp folder to the Tomcat installati
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 =.:
Search engine (I) Full-text resource retrieval framework Lucene, framework lucene
I wrote and searched today. Most of the searches involved in the current project were made by me. The manager once asked me that I had never used the luence search engine, I have never heard of such a search toolkit, but I have never been touched by it. I am gradually learning about the search in the idle time of my project, I
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.