List Info

Thread: specify index location




specify index location
country flaguser name
United States
2007-11-04 17:47:12
hi everyone, my first post on this mailing list. let me just
shout a big
thanks to everyone involved in this wonderful project. only
working with
solr & lucene for a little while, and am already getting
happy with the
results

the question is - is it possible to tell a solr instance the
location of its
index (to set it to something else than
<[solrhome]/data/index>?)

one of my indexes is fairly huge and i wouldn't like to copy
it to my
machine from the server every time i reindex. the server
solr instance needs
to run constantly since other parts of our system-in-work
are using it (so
it's not suitable for developing on). the index i test my
handlers with and
the server one must be identical for general comparibility.

i can map a server location as a local path.

thank you for your replies.
david p.

-- 
View this message in context: http://www.nabble.com/specify-index-locatio
n-tf4748921.html#a13579375
Sent from the Solr - User mailing list archive at
Nabble.com.


Re: specify index location
country flaguser name
United States
2007-11-04 20:43:31
Have a look at the solrconfig.xml file (explained at http://wiki
.apache.org/solr/SolrConfigXml) 
  and the dataDir setting.  You can, also, move your Solr
home and you  
could also try a symbolic link.

Cheers,
Grant

On Nov 4, 2007, at 6:47 PM, evol__ wrote:

>
> hi everyone, my first post on this mailing list. let me
just shout a  
> big
> thanks to everyone involved in this wonderful project.
only working  
> with
> solr & lucene for a little while, and am already
getting happy with  
> the
> results
>
> the question is - is it possible to tell a solr
instance the  
> location of its
> index (to set it to something else than
<[solrhome]/data/index>?)
>
> one of my indexes is fairly huge and i wouldn't like to
copy it to my
> machine from the server every time i reindex. the
server solr  
> instance needs
> to run constantly since other parts of our
system-in-work are using  
> it (so
> it's not suitable for developing on). the index i test
my handlers  
> with and
> the server one must be identical for general
comparibility.
>
> i can map a server location as a local path.
>
> thank you for your replies.
> david p.
>
> -- 
> View this message in context: http://www.nabble.com/specify-index-locatio
n-tf4748921.html#a13579375
> Sent from the Solr - User mailing list archive at
Nabble.com.
>

--------------------------
Grant Ingersoll
http://lucene.granti
ngersoll.com

Lucene Boot Camp Training:
ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com


Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance

http://w
iki.apache.org/lucene-java/LuceneFAQ



Re: specify index location
country flaguser name
United States
2007-11-05 22:41:21
Thanks Grant. Solrconfig.xml was the first place I looked
into, but somehow
missed it *scratches head*...

Just a remark:
  <!-- Used to specify an alternate directory to hold all
index data
       other than the default ./data under the Solr home.
       If replication is in use, this should match the
replication
configuration. -->
Might be a good idea to change this to ./data/index to
reflect the location
that is expected in there.

D.


Grant Ingersoll-6 wrote:
> 
> Have a look at the solrconfig.xml file (explained at
> http://wiki
.apache.org/solr/SolrConfigXml) 
>   and the dataDir setting.  You can, also, move your
Solr home and you  
> could also try a symbolic link.
> 
> Cheers,
> Grant
> 
> On Nov 4, 2007, at 6:47 PM, evol__ wrote:
> 
>>
>> hi everyone, my first post on this mailing list.
let me just shout a  
>> big
>> thanks to everyone involved in this wonderful
project. only working  
>> with
>> solr & lucene for a little while, and am
already getting happy with  
>> the
>> results
>>
>> the question is - is it possible to tell a solr
instance the  
>> location of its
>> index (to set it to something else than
<[solrhome]/data/index>?)
>>
>> one of my indexes is fairly huge and i wouldn't
like to copy it to my
>> machine from the server every time i reindex. the
server solr  
>> instance needs
>> to run constantly since other parts of our
system-in-work are using  
>> it (so
>> it's not suitable for developing on). the index i
test my handlers  
>> with and
>> the server one must be identical for general
comparibility.
>>
>> i can map a server location as a local path.
>>
>> thank you for your replies.
>> david p.
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/specify-index-locatio
n-tf4748921.html#a13579375
>> Sent from the Solr - User mailing list archive at
Nabble.com.
>>
> 
> --------------------------
> Grant Ingersoll
> http://lucene.granti
ngersoll.com
> 
> Lucene Boot Camp Training:
> ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com

> 
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance

> http://w
iki.apache.org/lucene-java/LuceneFAQ
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/specify-index-locatio
n-tf4748921.html#a13600800
Sent from the Solr - User mailing list archive at
Nabble.com.


Re: specify index location
user name
2007-11-05 22:57:03
On 11/5/07, evol__ <david.potocnikgmail.com> wrote:
> Just a remark:
>   <!-- Used to specify an alternate directory to
hold all index data
>        other than the default ./data under the Solr
home.
>        If replication is in use, this should match the
replication
> configuration. -->
> Might be a good idea to change this to ./data/index to
reflect the location
> that is expected in there.

./data is the generic solr data directory "index"
stores the main
index under the data directory.

-Yonik

RE: specify index location
country flaguser name
United States
2007-11-06 13:24:24
Snapshots are in that directory, and the spellchecker has
its own
indexes under there.

-----Original Message-----
From: yseeleygmail.com [mailto:yseeleygmail.com] On Behalf Of Yonik
Seeley
Sent: Monday, November 05, 2007 8:57 PM
To: solr-userlucene.apache.org
Subject: Re: specify index location

On 11/5/07, evol__ <david.potocnikgmail.com> wrote:
> Just a remark:
>   <!-- Used to specify an alternate directory to
hold all index data
>        other than the default ./data under the Solr
home.
>        If replication is in use, this should match the
replication 
> configuration. --> Might be a good idea to change
this to ./data/index

> to reflect the location that is expected in there.

./data is the generic solr data directory "index"
stores the main index
under the data directory.

-Yonik

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )