Typical Application Scenario

A professional document company uses HBase to collect information such as the document content, word count, score, and grade. A keyword search function is required to search for contentCh (Chinese content) and contentEng (English content) in the table.

The following table describes the document content fields.

Table 1 Field description

Field

Type of Field Mapped to Elasticsearch

Full-Text Index Required

Field Description

contentCh

text

Yes

Chinese content of the document

contentEng

text

Yes

Chinese content of the document

id

long

No

Document issue ID

charNum

int

No

Total number of words in the document

pageNum

short

No

Number of pages

level

byte

No

Document level

researchCost

double

No

Research expense

score

float

No

Document score

male

boolean

No

Author's gender

whatever

-

No

Other fields in the HBase table, but not mapped to Elasticsearch