mainIndex and indexDefaults

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mainIndex and indexDefaults

Koji Sekiguchi
Hello,

This is a trivial question, but I'm curious about mainIndex and
indexDefaults
in solrconfig.xml. They imply that I can have a second index other than
mainIndex.
But SolrConfig instantiates a mainIndex statically.
Are there any plan to improve around index setting in the future?

Thanks in advance,

Koji

Reply | Threaded
Open this post in threaded view
|

Re: mainIndex and indexDefaults

Yonik Seeley-2
On 3/31/07, Koji Sekiguchi <[hidden email]> wrote:
> This is a trivial question, but I'm curious about mainIndex and
> indexDefaults
> in solrconfig.xml.

Early on, I had thought that new documents would perhaps be added to a
separate in-mem index and merged in to the main index later.  Doug
showed an easier way with the snapshot/rsync strategy.

-Yonik
Reply | Threaded
Open this post in threaded view
|

Re: mainIndex and indexDefaults

Grant Ingersoll-2
Does this mean one of them is going to be deprecated or  does it also  
allow for the future case of Solr supporting named indexes per  
application?

It also seems that the indexDefaults covers a few more options  
related to the lock timeouts.  Are these inherited?

-Grant

On Mar 31, 2007, at 10:52 AM, Yonik Seeley wrote:

> On 3/31/07, Koji Sekiguchi <[hidden email]> wrote:
>> This is a trivial question, but I'm curious about mainIndex and
>> indexDefaults
>> in solrconfig.xml.
>
> Early on, I had thought that new documents would perhaps be added to a
> separate in-mem index and merged in to the main index later.  Doug
> showed an easier way with the snapshot/rsync strategy.
>
> -Yonik


Reply | Threaded
Open this post in threaded view
|

Re: mainIndex and indexDefaults

Chris Hostetter-3

: Does this mean one of them is going to be deprecated or  does it also
: allow for the future case of Solr supporting named indexes per
: application?

i'm guessing work to support multiple indexes will probably move in the
direction of each index having it's own solrconfig (i believe the
currently pending patch approaches it this way) because of how many
settings in the solrconfig relate to the way the index is used.

where a distinction between indexDefaults vs mainIndex may come into play
in the future is if someone comes up with an alternate update strategy
then DirectUpdater2 which requires a "temporary" index ... mainIndex will
always refer to the primary on disk index, some new section might refer to
the settings for the temp index, and indexDefaults would be inherited by
each.

(come to think of it, the spellchecker index should probably be defering
to indexDefaults yes/no?)

: It also seems that the indexDefaults covers a few more options
: related to the lock timeouts.  Are these inherited?

i *think* anything in indexDefaults can also be specificed in mainIndex --
and mainIndex inherits every unspecified option from indexDefaults.


: On Mar 31, 2007, at 10:52 AM, Yonik Seeley wrote:
:
: > On 3/31/07, Koji Sekiguchi <[hidden email]> wrote:
: >> This is a trivial question, but I'm curious about mainIndex and
: >> indexDefaults
: >> in solrconfig.xml.
: >
: > Early on, I had thought that new documents would perhaps be added to a
: > separate in-mem index and merged in to the main index later.  Doug
: > showed an easier way with the snapshot/rsync strategy.
: >
: > -Yonik
:
:



-Hoss