How do I index documents in SOLR?
Asked Answered
R

3

7

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

Robbyrobbyn answered 10/5, 2010 at 10:48 Comment(0)
A
7

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.

Andino answered 10/5, 2010 at 12:21 Comment(2)
Lucid link is not working. The video is found on youtube however. youtube.com/…Buddha
The only documentation I have found that is truly useful is the PDF at lucene.apache.org/solr/resources.html#documentationHeloise
T
0

I have found the same challenges with the core documentation, but I came across this very useful reference guide from LucidImagination, which helped to clarify a lot of thing about SOLR:

http://docs.lucidworks.com/display/solr/Apache+Solr+Reference+Guide

Tallu answered 11/5, 2010 at 1:27 Comment(3)
I think this would substitute the above: docs.lucidworks.com/display/solr/Apache+Solr+Reference+GuideAtcliffe
@paranza That is the same link and it no longer goes anywhere useful.Heloise
@Heloise it is the same link because the original post was edited around the same time I actually wrote my reply. Lucidworks has some Solr reference for Fusion Server here: doc.lucidworks.com/fusion-server/4.2/solr-reference-guide/7.5.0/…Atcliffe
R
0

Processing rich documents with Solr: http://wiki.apache.org/solr/UpdateRichDocuments

Rosenberger answered 25/8, 2011 at 12:27 Comment(1)
Oh, just recognized, that this method has been replaced by the ExtractingRequestHandler, like Mauricio suggested. (quote from solr wiki: This page covers the RichDocumentHandler as created by Eric Pugh and Chris Harris. Solr's Tika integration, which will replace the RichDocumentHandler is described at ExtractingRequestHandler. This page is being preserved here for those users who currently use the RichDocumentHandler)Rosenberger

© 2022 - 2024 — McMap. All rights reserved.