Basic use of Lucene and Solr

Lucene Lucene is a full-text search tool, which provides a complete set of APIs for creating, searching and indexing functions. We can call these APIs in the code to realize our search services. Inverted index Lucene implements index function based on inverted file index structure. So what is an i ...

Posted by pointsplat on Mon, 15 Jun 2020 01:13:25 -0700

Search engine - Solr cluster deployment

Key contents Three zookeeper nodes are required Four solr nodes. Using pseudo distributed to implement solr cluster. Three zookeeper instances and four tomcat instances are required, which can be simulated on a virtual machine. More than 1G memory is recommended for virtual machines. Solr instance building Step 1: crea ...

Posted by zorgon on Wed, 01 Apr 2020 19:42:14 -0700

Solr implements the LIKE query function similar to MySQL

Recently, we have encountered the need for keyword query on large text. The effect to be achieved is that when a user enters a word or a word, all the contents containing the word or a word should be searched. It's the same as MySQL's LIKE query. In this scenario, the first thing I think about is to directly use MySQL storage, and then query, w ...

Posted by idnoble on Tue, 17 Mar 2020 08:19:00 -0700

Building simple application services of solr

Environment: Centos7 + jdk1.8 + solr-7.7.2 + tomcat-8.5.43 Centos7 download address: https://www.jianshu.com/p/a63f47e096e8 jdk1.8 download address: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html solr-7.7.2 download address: http://archive.apache.org/dist/lucene/solr/ tomcat-8.5.43 download address: http://archive.apache.or ...

Posted by renegade44 on Mon, 16 Mar 2020 01:26:27 -0700

Java large Internet Project - development diary - Mobile e-mall - Homepage screening Solr

Java large Internet Project - development diary - Mobile e-mall - Homepage screening Solr demand We need to update the following product information every time we click an option. When the number of visitors is too large, if we click to request the database, the access speed will be too slow, so we ...

Posted by gbuck on Thu, 30 Jan 2020 09:09:08 -0800

Document deletion for the SpringBoot series tutorial Solr

Document deletion for Solr, 200114-SpringBoot series tutorial The previous Search tutorial did not continue at the beginning, and now it is picked up again, at least to complete the basic operation posture of CURD; this article focuses on how to delete data <!-- more --> I. Configuration Before introducing demo, you need to install sol ...

Posted by rougue on Wed, 15 Jan 2020 18:09:21 -0800

Course handout of Java product purchase

Getting started with spring datasolr 1.1 introduction to spring data Solr While the ability to support any programming language has great market value, the question you may be interested in is: how can I Is Solr's application integrated into Spring? Yes, Spring Data Solr is a framework developed to facilitate the development of ...

Posted by fwegan on Thu, 02 Jan 2020 03:05:29 -0800

Adding, deleting, modifying and querying solr index by springboot

solr version: 8.x springboot version: 1.5.6 1. To prepare the springboot project, pom.xml needs to introduce the following jar package <properties>     <project.final.name>htsolr</project.final.name>     <java.version>1.8</java.version>     <project.build.sourceEncoding>UTF-8</project.build.sourceEnc ...

Posted by j007w on Tue, 24 Dec 2019 02:11:39 -0800

php operation solr7.5 data imported through mysql

solr installation and configuration download Download address: http://www.apache.org/dyn/closer.lua/lucene/solr/7.5.0 Unzip directly after downloading. To configure Create a new core Enter the directory after decompression (replaced by ~ / Solr root /), enter ~ / Solr root / server / Solr /, create a new directory, and define the directory nam ...

Posted by adrianuk29 on Thu, 05 Dec 2019 17:20:28 -0800

solr transaction commit

In the process of using solr, most of the operations are query operations, few transactions are used, and only commit is used when adding or deleting. solr's commit can be divided into three types: Manually call commit Automatic submission Delayed submission After each manual operation, the efficiency of calling commit is ...

Posted by vineld on Sat, 30 Nov 2019 22:39:52 -0800