Lucene Tutorial on Lucene Indexing Operations

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 a list of commonly-used operations during indexing process.

s.no. operation & description
1 add document

this operation is used in the initial stage of the indexing process to create the indexes on the newly available content.

2 update document

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

3 delete document

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

4 field options

field options specify a way or control the ways in which the contents of a field are to be made searchable.