How do I index documents in SOLR?

Shane picture Shane · May 10, 2010 · Viewed 40.6k times · Source

Im running Solr 1.4 on Ubuntu 10.04 (installed via apt-get solr-tomcat) and it seems to be working fine. Im having some difficulty finding any coherent info on how to index documents though. Im new to SOLR so bear with me! I have a folder (/mnt/folder) that is a mounted windows share, which contains Word and PDF files that I would like indexed, whats the easiest way to get SOLR to index the entire folder?

The documentation for SOLR is pretty poor, its impossilbe to find any decent tutorials on getting things done with it so any help is greatly appreciated!

S

Answer

Mauricio Scheffer picture Mauricio Scheffer · May 10, 2010

Take a look at the Solr wiki, it's a pretty thorough documentation.

In particular see the ExtractingRequestHandler, which allows you to index binary files like Word and PDF documents. Here's an introduction to the topic.

If the wiki isn't enough for you, there's also a great book about Solr.