Basics of the Solr

Indexing Solr search is based on the index search. Solr is able to search the strings fast because, instead of searching the text directly in the content, it searches an index to search the pattern. This is very similar concept as we have in our book to find any specific term. It is like retrieving pages in a book related to a keyword by scanning the index at the back of a book, as opposed to searching every word of every page of the book. This type of index is called an inverted index , because it inverts a page-centric data structure (page->words) to a keyword-centric data structure (word->pages). Solr stores this index in a directory called index in the data directory. How Solr stores and represents data Here in the Solr, a Document is the unit of search and index. An index consists of one or more Documents, and a Document consists of one or more Fields. In database terminology, a Document corresponds to a table row, and a Fie...