Personal understanding of the principle of HibernateSearch

HiberanteSearch, when adding records, will segment the data according to the specified rules (that is, the annotations indexed, documentid, analyzer, field provided by HiberanteSearch), and save it to the index database in the form of primary key id + segmentation.

When making a query, it will first go to the index database to find whether there is a corresponding word segment. If the corresponding word segment is found, it will directly use the primary key id to search in the database.

In this process, the index library only saves the primary key id and word segmentation, but the real business data is still stored in the database

Guess you like

Origin blog.csdn.net/qsw2lw/article/details/90065488