Supercharge Your Innovation With Domain-Expert AI Agents!

HBase secondary full-text indexing method and system based on phoenix

A full-text indexing and full-text technology, applied in the field of database indexing, can solve problems such as inability to meet queries, and achieve the effect of meeting the needs of full-text retrieval

Active Publication Date: 2021-04-09
UNICLOUD (NANJING) DIGITAL TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since both the original data table and the index table are stored in HBase, the query of the index table is also required to be a RowKey query, which cannot be satisfied for the query of the full-text index of the non-RowKey column of the original table.

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 secondary full-text indexing method and system based on phoenix
  • HBase secondary full-text indexing method and system based on phoenix

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0057] figure 1 The present embodiment shown provides a kind of implementation mode of the Hbase secondary full-text index system based on phoenix of the present invention, and described system comprises: Phoenix query server, Hbase storage engine, Elasticsearch storage engine;

[0058] in,

[0059] The Hbase storage engine stores Hbase raw data tables;

[0060] The Elasticsearch storage engine stores the secondary full-text index table of the Hbase original data table, and executes the query statement pushed down by the Phoenix query server;

[0061] The Phoenix query server creates a secondary full-text index table for the Hbase original data table, establishes the associated foreign key between the secondary full-text index table and the Hbase original data table, and maintains the secondary full-text index table; when performing full-text indexing, the Phoenix query server Obtain the client query statement, parse the query statement into an abstract syntax tree, convert ...

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 proposes a phoenix-based HBase secondary full-text indexing method and system, comprising the steps of: establishing a secondary full-text index table for the HBase original data table, storing it in the Elasticsearch storage engine, and establishing a relationship between the secondary full-text index table and the HBase original data table. Associate foreign keys, so that after the full-text retrieval conditions are pushed down to the Elasticsearch storage engine, the query result of the full-text index table of the Elasticsearch storage engine is the rowkey of the original data table of HBase; when performing full-text indexing, the phoenix query server converts the client query statement to Elasticsearch storage The engine can execute the query expression, and push down the Elasticsearch storage engine query; the phoenix query server uses the query result returned by the Elasticsearch storage engine as the RowKey collection of the Hbase original data table to query in the Hbase storage engine, and returns the final result of the query to the client. The invention converts the secondary index function into a full-text index based on ElasticSearch and a RowKey query based on HBase, expands the original Phoenix function, and meets the needs of users for full-text search.

Description

technical field [0001] The invention relates to the technical field of database indexing, in particular to a phoenix-based Hbase secondary full-text indexing method and system. Background technique [0002] The advantage of HBase is RowKey query and range query, while non-RowKey query will become extremely slow. For this feature, phoenix provides a secondary index function based on HBase. Phoenix implements the secondary index function by creating two HBase tables, that is, an index table index table1 is created when the index is built, and the RowKey column of the index table is the non-RowKey column of the original table. However, this secondary indexing technique has the following drawbacks: [0003] Since both the original data table and the index table are stored in HBase, the query of the index table is also required to be a RowKey query, and the query of the full-text index of the non-RowKey column of the original table cannot be satisfied. Contents of the inventio...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/31G06F16/33G06F16/338
CPCG06F16/316G06F16/334G06F16/338
Inventor 于伟
Owner UNICLOUD (NANJING) DIGITAL TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More