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

[gold, silver and four] one question is whether you will have JS, Ali, and the analysis of the real headline

Introduction This paper introduces the characteristics of this paper 1. Suitable for the front end, need to interview for a job 2. Facing internship and accumulating experience soon after graduation 3. From pragmatic basis to thorough understanding 4. Explore the source code of the framework and res ...

Posted by mwkemo on Tue, 17 Mar 2020 00:01:15 -0700

tornado learning notes day04 execution order

Response output - > write prototype self.write() function This is how it is defined in the source code def write(self, chunk: Union[str, bytes, dict]) -> None: Effect Write chunk data to buffer Four ways to refresh buffer Program interrupt Manual refresh Buffer full Encounter \n When you write a print, it is not directly displayed on t ...

Posted by chyan on Mon, 16 Mar 2020 20:31:09 -0700

A novel coronavirus pneumonia is divided into 1.16 sub sections from the date of the national day.

Article directory Novel coronavirus pneumonia: total data of domestic sub provincial date (1.16 cases): Download the original json format data Data download in csv format 2. Data source and capture Data delivery process Download and organize data into csv Novel coronavirus pneumonia: total dat ...

Posted by jonsimmonds on Mon, 16 Mar 2020 03:57:31 -0700

Design of xdh official website based on django and vue

Preface This project is designed with three-stage separation Reception The foreground page built by materialize framework and the interface written by django used by the backend Backstage Use the interface built by Amazon UI template to manage the content of each part Project environment python3.7.2 django2.2.9 vue axios jQuery materialize mys ...

Posted by jrws on Sun, 15 Mar 2020 21:25:46 -0700

Passive way of collecting nginx logs by graylog2

Graylog can collect nginx logs in two ways: one is through the Graylog Collector Sidecar (active mode), and the other is through modifying the nginx configuration file (passive mode). This time, let's change the nginx configuration file (passive mode). The advantage of passive mode is that nginx sends the defined log fields to the user-defined ...

Posted by TheDefender on Sun, 15 Mar 2020 20:52:31 -0700

Solve the problem that ajax can't move forward, backward or refresh

Solve the problem that ajax can't move forward, backward or refresh Scenario Description: At present, the front and back end basically realize the interaction of front and back interface data through ajax, but ajax has a small disadvantage, that is, it does not support the browser "back" and ...

Posted by Chris-the dude on Sun, 15 Mar 2020 20:09:04 -0700

Python crawling Json parsing error

Preface Recently, in my Python crawler, I always encounter the error of json.loads() method. Take a look at the retrieved original text, which has escaped "and", that is, \ "and \". At the beginning, I met this problem and searched the Internet wildly, but I couldn't find the an ...

Posted by fredriksk on Sun, 15 Mar 2020 05:11:14 -0700

Fabric 1.4 source code interpretation 4: transaction endorsement process interpretation

When the picture cannot be displayed, please check the original text: https://lessister.site/2019/10/29/fabric-transaction-endorser-source/ Article directory Technological process Macro transaction process Chain code calling process Proposal endorsement process Source code analysis Proposal definit ...

Posted by WormTongue on Sun, 15 Mar 2020 04:37:16 -0700

Spring Boot 1.5 learn 10 -- Spring Boot caching technology (spring data redis)

1. Integration steps 1.1 introduction of springdataredis starter <!-- Spring Data Redis Starter --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 1.2 write the configu ...

Posted by kelseyirene on Sun, 15 Mar 2020 01:57:24 -0700