The invention discloses a
spectral curve retrieval method and engine based on Lucene. The method comprises the following steps: opening an index folder through an FSDirectory class of the Lucene; selecting index characteristics, and utilizing the Lucene to establish an index for a curve file in a spectral
library; calling an IndexWriter class of the Lucene to write the established index into the index folder; inputting a file to be retrieved; and opening the index folder, and adopting
linear search to successively carry out similarity comparison on Document index files in the folder with an input characteristic array so as to return a
retrieval result according to the similarity of the selected characteristics from the index folder. The method of the embodiment utilizes the Lucene to establish the index for the curve filed in the spectral
library so as to return the
retrieval result according to the similarity of the selected characteristics from the index files during retrieval, a purpose that file reading speed is quickened is realized, retrieval efficiency is improved, and the method is simple and convenient.