The use of Lucene is based on a huge index library. Generally speaking, when we search, we do not search directly in the database, but directly from the index library, because the index library is binary format, so the retrieval speed is very fast. Therefore, when we use Lucene to search, we must first create or obtain an index library.