Indexing data in Solr
Indexing of data in Solr is done using a document that contains fields that are used to provide major information to Solr. A document can be broken down further into fields, which contain major pieces of information that is used by Solr to further provide better search results.
The musicCatalogue
core that we'll build will contain fields representing information related to a song. For example, an artistName
field will contain the name of the artist who sang the song. Another field such as duration
can contain the length of the song. A fields can also contain a data type, which will further describe the type of data that can be used. For example, artistName
can be described as a text field. On the other hand, the duration
field can be of type float or double. The fieldType
property specifies the kind of field to be used by Solr.
Note
More information about floating-point numbers can be found at https://en.wikipedia.org/wiki/Floating_point.
So let's go ahead and...