Make delicious recipes!

Managing Solr and self-learning


To gather more confidence in Solr, it is important to self-browse the following:

Important directories in Solr:
  1. solr/collection1/conf : directory containing config files.

  2. solr/collection1/conf/schema.xml : File containing schema for collection1

  3. solr/collection1/conf/solrconfig.xml : Main config file for this core.

  4. solr/collection1/data : Directory to keep Lucene index files



Important classes in Solr source code:
  1. org.apache.solr.search.SolrIndexSearcher
  2. org.apache.solr.core.SoleCore
  3. org.apache.solr.handler.component.FacetComponent
  4. org.apache.solr.handler.component.RealTimeGetComponent
  5. org.apache.solr.handler.component.QueryComponent
  6. org.apache.solr.handler.admin.SolrInfoMBeanHandler
  7. org.apache.solr.servlet.SolrDispatchFilter


Solr from the Browser:
Solr can be accessed from the browser by navigating to http://localhost:8983/solr
This makes the task of Solr administration really really simple.
This page has all the information related to:
  1. Memory used
  2. Thread dumps
  3. Documents indexed
  4. Query stats
  5. Response times
  6. Commit times
  7. You can even input a JSON/XML document by navigating here to “Documents” section.
  8. Logging levels can be changed.
  9. Add/Delete cores.
  10. View all the configuration files like schema.xml and solrconfig.xml
Also take some time to visit the Schema Browser. It has an interesting option: It not only shows all the information about fields, it also groups the values for each field and shows their counts by the “Load Term Info” button.

In summary, the browser admin for Solr is extremely powerful.
Make sure you explore it well and make it a practice to use it regularly.


Quick delete: All documents can be deleted from index by removing all files from solr/collection1/data/*









Like us on Facebook to remain in touch
with the latest in technology and tutorials!


Got a thought to share or found a
bug in the code?
We'd love to hear from you:

Name:
Email: (Your email is not shared with anybody)
Comment:

Facebook comments:

Site Owner: Sachin Goyal