Lucene full-text search process

1. indexing process:

  1) There is a series of index files

  2) be indexed file parsed a series of words and language processing (Term).

  3) After the formation of the index dictionary creation and reverse index table.

  4) By storing the index index written to disk.

2. Search process:

  1) the user enters a query.

  2) query language statement parsed and analyzed to give a series of words (Term).

  3) obtained by parsing a query tree.

  4 ) By storing the index index read into memory.

  5) use the query tree search index to give each word (Term) in the document list, the document linked list intersection, difference, and get the result document.

   The results of the search document ranking the relevance to the query.

  6) return query results to the user.

Guess you like

Origin www.cnblogs.com/user001/p/11209626.html