Hbase second-level query scheme based on solr

A query scheme, a second-level technology, applied in the field of hbase, can solve the problems of long scanning time, inability to modify, occupying server memory, etc., and achieve the effects of high accuracy, fast response speed, and fast search speed

Inactive Publication Date: 2017-01-11
WUHAN OPTICS VALLEY INFORMATION TECH
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] (2) Indexing will affect the speed of inserting data
[0013] Since inserting data and building an index is a synchronous process, the operation of building an index will greatly affect the speed of inserting data
[0014] (3) The fields that need to be indexed must be determined before data insertion, and cannot be modified later
[0015] Another problem with inserting data while building an index is that we must determine all the fields that need to be indexed at one time. If an index needs to be built on a new field later, the previously inserted data will not be automatically indexed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hbase second-level query scheme based on solr
  • Hbase second-level query scheme based on solr

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0036] The present invention will be further explained below in conjunction with specific embodiments.

[0037] Reference Figure 1-2 , A solr-based Hbase second-level query solution proposed by the present invention includes the following steps:

[0038] Step 1. Insert the original data into the Hbase columnar database, keeping the original Hbase method, without any other changes;

[0039] Step 2. Invoke MapReduce regularly to incrementally update the index in Solr, first obtain the original data inserted into the Hbase columnar database and store the original data in Solr's unique document format in Solr's server. After the document is created, Solr will automatically perform the document Analysis, which involves segmenting the content of the document according to a specific word segmentation technology. After the word segmentation is completed, Solr uses the segmented word as the key and the document as the value for inverted index;

[0040] Step 3. When querying, visit the Solr s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an Hbase second-level query scheme based on solr. The Hbase second-level query scheme comprises the following steps of inserting raw data into an Hbase column-oriented database; calling a MapReduce increment to update an index in the solr, obtaining the raw data, and storing into a server of the solr with a particular file format of the solr; accessing the server of the solr, and establishing the index; firstly, searching the index, obtaining rowkey from the index, and querying required result data from an Hbase main list. The Hbase second-level query scheme has the advantages that the searching speed is high, and the accuracy is high; by adopting a solr and Hbase combining technique, the massive data can be searched in a second-level way, and the rowkey of data of one page can be returned back by a page separating function of the solr; because the number of data of each page is extremely limited, the response speed is higher when the Hbase query is performed according to the rowkey of the corresponding page, and is controlled to the millisecond level.

Description

technical field [0001] The invention relates to the technical field of hbase, in particular to a solr-based Hbase second-level query scheme. Background technique [0002] Solr is a complete search service based on Lucene under Apache. Solr mainly includes two core components: the index component and the search component. The index component is used to index the data that needs to be indexed in the search program, and the search component is used to query the index in response to the request of the client. Solr is a high-performance, Java5-based, Lucene-based full-text search server. At the same time, it has been extended to provide a richer query language than Lucene. At the same time, it is configurable, scalable, and optimizes query performance, and provides a complete function management interface. It is a very good Full text search engine. Documents are added to a searchable collection using XML via Http. Querying the collection is also achieved by receiving an XML / ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/221G06F16/2228G06F16/2455
Inventor 童浩杨凡
Owner WUHAN OPTICS VALLEY INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products