Thursday 1 July 2021

Lucene: Document

Documents represent actual content that is going to be indexed, it is a collection of fields. Each field in the document has a unique name to identify it. Each field in the document has a value and options that helps Lucene to identify ‘what to do with this field value while indexing’.

 

An example of a document looks like below.

 

Example

"id": "1"
"title" : "Lucene in Action"
"description" : "Lucene is a platform where we can index our data to make it searchable."

 

In the above example, id, title and description are fields.

 

Is All the field values are indexed?

Field with text value only indexed.


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment