Store document while using Solr

2012-12-20 Thread Nicholas Li
hi there,

I am quite new to Solr and have a very basic question about storing and
indexing the document.

I am trying with the Solr example, and when I run command like 'java -jar
post.jar foo/test.xml', it gives me the feeling that solr will index the
given file, no matter where it is store, and solr won't re-store this file
to some other location in the file system.  Am I correct?

If I want use file system to manage the document, it seem like it is better
to define some location, which will be used to store all the potential
files(It may need some processing to move/copy/upload the files to this
location), then use solr to index them under this location. Am I correct?

Cheers,
Nick


Re: Store document while using Solr

2012-12-20 Thread Otis Gospodnetic
Hi,

You can use Solr's DataImportHandler to index files in the file system.
 You could set things up in such a way that Solr keeps indexing whatever
you put in some specific location in the FS.  This is not the most common
setup, but it's certainly possible.  Solr keeps the searchable index in its
own directory defined in in one of its configs.

Otis
--
Performance Monitoring - http://sematext.com/spm/index.html
Search Analytics - http://sematext.com/search-analytics/index.html




On Thu, Dec 20, 2012 at 8:15 PM, Nicholas Li nicholas...@yarris.com wrote:

 hi there,

 I am quite new to Solr and have a very basic question about storing and
 indexing the document.

 I am trying with the Solr example, and when I run command like 'java -jar
 post.jar foo/test.xml', it gives me the feeling that solr will index the
 given file, no matter where it is store, and solr won't re-store this file
 to some other location in the file system.  Am I correct?

 If I want use file system to manage the document, it seem like it is better
 to define some location, which will be used to store all the potential
 files(It may need some processing to move/copy/upload the files to this
 location), then use solr to index them under this location. Am I correct?

 Cheers,
 Nick