Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where solr store search index, in database or in file?

I am new to Solr. can anybody tell where it stores index.

  1. in existing site database
  2. create new database
  3. into xml files.

Thanks in advance

EDIT: i am asking this because i need a list of files to copy over to production. Suppose, if i index a site on development environment, which files i need to copy over to production environment. we dont want to re-index whole site again when its live.

EDIT-2 where i can find index directory, which stores data folder?

like image 527
innocent Avatar asked Oct 07 '11 09:10

innocent


People also ask

Where Solr indexes are stored?

The Solr data gets indexed in the /solr directory. Run the following command to list the files and directories in the HDFS directory /solr.

How does Solr index data?

By adding content to an index, we make it searchable by Solr. A Solr index can accept data from many different sources, including XML files, comma-separated value (CSV) files, data extracted from tables in a database, and files in common file formats such as Microsoft Word or PDF.

What is stored in Solr?

Solr in Action In general, your documents may contain fields that aren't useful from a search perspective but are still useful for displaying search results. In Solr, these are called stored fields. The favorites _count field is a good example of a stored field that isn't indexed but is useful for display purposes.

What is indexing in Solr search?

Indexing enables users to locate information in a document. Indexing collects, parses, and stores documents. Indexing is done to increase the speed and performance of a search query while finding a required document.


1 Answers

Solr (and underlying Lucene) index is a specially designed data structure, stored on the file system as a set of index files.

The index is designed with efficient data structures to maximize performance and minimize resource usage.

you can check the lucene index usually residing in the data/index folder

Detailed info @ http://lucene.apache.org/java/3_0_0/fileformats.html

like image 181
Jayendra Avatar answered Nov 26 '22 08:11

Jayendra