lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roopesh P Raj <roop...@digitalglue.in>
Subject Re: Copying part of index directory
Date Sun, 17 Jun 2007 10:03:15 GMT
Mike Klaas wrote:
>
> On 15-Jun-07, at 4:25 AM, Roopesh P Raj wrote:
>
>> Hi,
>>
>> I am new to solr, lucene. In my project I want to copy index 
>> directory based on some query (copy may not copy the whole index 
>> directory). I came across a backup script in solr/bin folder but it 
>> seems to be copying the whole index directory.
>>
>> My query is, what is the procedure for copying a part of the index. 
>> Is it like - do a query, get all the fields, make a new index with 
>> those queried results? Or is there any other way ?
>
> You can't easily copy parts of the physical file.  I suggest 
> performing the query, fetching some unique key (application-specific), 
> and re-indexing those documents from your original source.  It can be 
> done through Solr too, but you have to be careful to store all the 
> relevant fields to being with.
Thanks for the reply. I have one more query. My doubt is where to 
re-index (location of the index directory) ? For this should I run 
another instance of solr? Is this the preferred approach ?

Roopesh

------------------
DigitalGlue, India




Mime
View raw message