Lucene - Indexing Operations


Advertisements


In this chapter, we'll discuss the four major operations of indexing. These operations are useful at various times and are used throughout of a software search application.

Indexing Operations:

Following is the list of commonly used operations during indexing process.

Sr. No.Operation & Description
1Add Document

This operation is used in the initial stage of indexing proces to create the indexes on the newly available contents.

2Update Document

This operation is used to update indexes to reflect the changes in the updated contents. It is similar to recreating the index.

3Delete Document

This operation is used to update indexes to exclude the documents which are not required to be indexed/searched.

4Field Options

Field options specifies a way or controls the way in which contents of a field are to be made searchable.



Advertisements