Re: difference between shard and core in solr

2011-07-18 Thread Chris Hostetter

http://wiki.apache.org/solr/SolrTerminology



: hi ,
: 
: i just wanna be clear in the concepts of core and shard ?
: 
: a single core is an index with same schema  , is this wat core really is ?
: 
: can a single core contain two separate indexes with different schema in it ?
: 
: Is a shard  refers to a collection of index in a single physical machine
: ?can a single core be presented in different shards ?
: 
: 
: 
: 
: 
: 
: -- 
: 
: -JAME
: 

-Hoss


Re: difference between shard and core in solr

2011-07-18 Thread Briggs Thompson
I think everything you said is correct for static schemas, but a single core
does not necessarily have a unique schema since you can have dynamic
fields.

With dynamic fields, you can have multiple types of documents in the same
index (core), and a multiple types of indexed fields specific to individual
document types - all in the same core.

Briggs Thompson



On Mon, Jul 18, 2011 at 2:22 AM, pravesh  wrote:

> >a single core is an index with same schema  , is this wat core really is ?
>
>  YES. A single core is a independent index with its own unique schema. You
> go with a new core for cases where your schema/analysis/search requirements
> are completely different from your existing core(s).
>
> >can a single core contain two separate indexes with different schema in it
> ?
>
> NO (for same reason as explained above).
>
> >Is a shard  refers to a collection of index in a single physical machine
> >?can a single core be presented in different shards ?
>
> You can think of a Shard as a big index distributed across a cluster of
> machines. So all shards belonging to a single core share same
> schema/analysis/search requirements. You go with sharding when index is not
> scalable on a single machine, or, when your index grows really big in size.
>
>
> Thanx
> Pravesh
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/difference-between-shard-and-core-in-solr-tp3178214p3178249.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: difference between shard and core in solr

2011-07-17 Thread pravesh
>a single core is an index with same schema  , is this wat core really is ?

 YES. A single core is a independent index with its own unique schema. You
go with a new core for cases where your schema/analysis/search requirements
are completely different from your existing core(s).

>can a single core contain two separate indexes with different schema in it
? 

NO (for same reason as explained above).

>Is a shard  refers to a collection of index in a single physical machine
>?can a single core be presented in different shards ? 

You can think of a Shard as a big index distributed across a cluster of
machines. So all shards belonging to a single core share same
schema/analysis/search requirements. You go with sharding when index is not
scalable on a single machine, or, when your index grows really big in size.


Thanx
Pravesh

--
View this message in context: 
http://lucene.472066.n3.nabble.com/difference-between-shard-and-core-in-solr-tp3178214p3178249.html
Sent from the Solr - User mailing list archive at Nabble.com.


difference between shard and core in solr

2011-07-17 Thread jame vaalet
hi ,

i just wanna be clear in the concepts of core and shard ?

a single core is an index with same schema  , is this wat core really is ?

can a single core contain two separate indexes with different schema in it ?

Is a shard  refers to a collection of index in a single physical machine
?can a single core be presented in different shards ?






-- 

-JAME