Re: Where is schema.xml ?

2015-06-17 Thread Upayavira
Do you have a managed-schema file, or such?

You may have used the configs that have a managed schema, i.e. one that
allows you to change the schema via HTTP.

Upayavira

On Wed, Jun 17, 2015, at 02:33 PM, TK Solr wrote:
 With Solr 5.2.0, I ran:
 bin/solr create -c foo
 This created solrconfig.xml in server/solr/foo/conf directory.
 Other configuration files such as synonyms.txt are found in this
 directory too.
 
 But I don't see schema.xml. Why is schema.xml handled differently?
 
 I am guessing
 server/solr/configsets/sample_techproducts_configs/conf/schema.xml
 is used by the foo core because it knows about the cat field.
 Is the template files in sample_techproducts_configs considered standard?
 
 TK
 


Re: Where is schema.xml ?

2015-06-17 Thread TK Solr

On 6/17/15, 2:35 PM, Upayavira wrote:

Do you have a managed-schema file, or such?

You may have used the configs that have a managed schema, i.e. one that
allows you to change the schema via HTTP.
I do see a file named managed-schema without .xml extension in the conf 
directory.

Its content does look like a schema.xml file.
Is this an initial content of in-memory schema, and schema API updates the 
schema dynamically?





Where is schema.xml ?

2015-06-17 Thread TK Solr
With Solr 5.2.0, I ran:
bin/solr create -c foo
This created solrconfig.xml in server/solr/foo/conf directory.
Other configuration files such as synonyms.txt are found in this directory too.

But I don't see schema.xml. Why is schema.xml handled differently?

I am guessing
server/solr/configsets/sample_techproducts_configs/conf/schema.xml
is used by the foo core because it knows about the cat field.
Is the template files in sample_techproducts_configs considered standard?

TK



Re: Where is schema.xml ?

2015-06-17 Thread Upayavira


On Wed, Jun 17, 2015, at 02:49 PM, TK Solr wrote:
 On 6/17/15, 2:35 PM, Upayavira wrote:
  Do you have a managed-schema file, or such?
 
  You may have used the configs that have a managed schema, i.e. one that
  allows you to change the schema via HTTP.
 I do see a file named managed-schema without .xml extension in the
 conf 
 directory.
 Its content does look like a schema.xml file.
 Is this an initial content of in-memory schema, and schema API updates
 the 
 schema dynamically?

Yup, that's how I understand it. You should not edit that file directly.

Upayavira


Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-12 Thread Nitin Solanki
Hi. Erick..
   Would please help me distinguish between
Uploading a Configuration Directory and Linking a Collection to a
Configuration Set ?

On Thu, Mar 12, 2015 at 2:01 AM, Nitin Solanki nitinml...@gmail.com wrote:

 Thanks a lot Erick.. It will be helpful.

 On Wed, Mar 11, 2015 at 9:27 PM, Erick Erickson erickerick...@gmail.com
 wrote:

 The configs are in Zookeeper. So you have to switch your thinking,
 it's rather confusing at first.

 When you create a collection, you specify a config set, these are
 usually in

 ./server/solr/configsets/data_driven_schema,
 ./server/solr/configsets/techproducts and the like.

 The entire conf directory under one of these is copied to Zookeeper
 (which you can see
 from the admin screen cloudtree, then in the right hand side you'll
 be able to find the config sets
 you uploaded.

 But, you cannot edit them there directly. You edit them on disk, then
 push them to Zookeeper,
 then reload the collection (or restart everything). See the reference
 guide here:
 https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities

 Best,
 Erick

 On Wed, Mar 11, 2015 at 6:01 AM, Nitin Solanki nitinml...@gmail.com
 wrote:
  Hi, alexandre..
 
  Thanks for responding...
  When I created new collection(wikingram) using solrCloud. It gets create
  into example/cloud/node*(node1, node2) like that.
  I have used *schema.xml and solrconfig.xml of
 sample_techproducts_configs*
  configuration.
 
  Now, The problem is that.
  If I change the configuration of *solrconfig.xml of *
  *sample_techproducts_configs*. Its configuration doesn't reflect on
  *wikingram* collection.
  How to reflect the changes of configuration in the collection?
 
  On Wed, Mar 11, 2015 at 5:42 PM, Alexandre Rafalovitch 
 arafa...@gmail.com
  wrote:
 
  Which example are you using? Or how are you creating your collection?
 
  If you are using your example, it creates a new directory under
  example. If you are creating a new collection with -c, it creates
  a new directory under the server/solr. The actual files are a bit
  deeper than usual to allow for a log folder next to the collection
  folder. So, for example:
  example/schemaless/solr/gettingstarted/conf/solrconfig.xml
 
  If it's a dynamic schema configuration, you don't actually have
  schema.xml, but managed-schema, as you should be mostly using REST
  calls to configure it.
 
  If you want to see the configuration files before the collection
  actually created, they are under server/solr/configsets, though they
  are not configsets in Solr sense, as they do get copied when you
  create your collections (sharing them causes issues).
 
  Regards,
 Alex.
  
  Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
  http://www.solr-start.com/
 
 
  On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
   Hello,
  I have switched from solr 4.10.2 to solr 5.0.0. In
 solr
   4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/
 folder.
   Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want
 to
   know how to configure in solrcloud ?
 





Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-12 Thread Nitin Solanki
Thanks Shawn and Erick for explanation...

On Thu, Mar 12, 2015 at 9:02 PM, Shawn Heisey apa...@elyograg.org wrote:

 On 3/12/2015 9:18 AM, Erick Erickson wrote:
  By and large, I really never use linking. But it's about associating a
  config set
  you've _already_ uploaded with a collection.
 
  So uploading is pushing the configset from your local machine up to
 Zookeeper,
  and linking is using that uploaded, named configuration with an
  arbitrary collection.
 
  But usually you just make this association when creating the collection.

 The primary use case that I see for linkconfig is in testing upgrades to
 configurations.  So let's say you have a production collection that uses
 a config that you name fooV1 for foo version 1.  You can build a test
 collection that uses a config named fooV2, work out all the bugs, and
 then when you're ready to deploy it, you can use linkconfig to link your
 production collection to fooV2, reload the collection, and you're using
 the new config.  I haven't discussed here how to handle the situation
 where a reindex is required.

 One thing you CAN do is run linkconfig for a collection that doesn't
 exist yet, and then you don't need to include collection.configName when
 you create the collection, because the link is already present in
 zookeeper.  I personally don't like doing things this way, but I'm
 pretty sure it works.

 Thanks,
 Shawn




Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-12 Thread Erick Erickson
By and large, I really never use linking. But it's about associating a
config set
you've _already_ uploaded with a collection.

So uploading is pushing the configset from your local machine up to Zookeeper,
and linking is using that uploaded, named configuration with an
arbitrary collection.

But usually you just make this association when creating the collection.

It's simple to test all this out, just upconfig a couple of config
sets, play with the linking
and reload the collections. From there the admin UI will show you what actually
happened.

Best,
Erick

On Thu, Mar 12, 2015 at 2:39 AM, Nitin Solanki nitinml...@gmail.com wrote:
 Hi. Erick..
Would please help me distinguish between
 Uploading a Configuration Directory and Linking a Collection to a
 Configuration Set ?

 On Thu, Mar 12, 2015 at 2:01 AM, Nitin Solanki nitinml...@gmail.com wrote:

 Thanks a lot Erick.. It will be helpful.

 On Wed, Mar 11, 2015 at 9:27 PM, Erick Erickson erickerick...@gmail.com
 wrote:

 The configs are in Zookeeper. So you have to switch your thinking,
 it's rather confusing at first.

 When you create a collection, you specify a config set, these are
 usually in

 ./server/solr/configsets/data_driven_schema,
 ./server/solr/configsets/techproducts and the like.

 The entire conf directory under one of these is copied to Zookeeper
 (which you can see
 from the admin screen cloudtree, then in the right hand side you'll
 be able to find the config sets
 you uploaded.

 But, you cannot edit them there directly. You edit them on disk, then
 push them to Zookeeper,
 then reload the collection (or restart everything). See the reference
 guide here:
 https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities

 Best,
 Erick

 On Wed, Mar 11, 2015 at 6:01 AM, Nitin Solanki nitinml...@gmail.com
 wrote:
  Hi, alexandre..
 
  Thanks for responding...
  When I created new collection(wikingram) using solrCloud. It gets create
  into example/cloud/node*(node1, node2) like that.
  I have used *schema.xml and solrconfig.xml of
 sample_techproducts_configs*
  configuration.
 
  Now, The problem is that.
  If I change the configuration of *solrconfig.xml of *
  *sample_techproducts_configs*. Its configuration doesn't reflect on
  *wikingram* collection.
  How to reflect the changes of configuration in the collection?
 
  On Wed, Mar 11, 2015 at 5:42 PM, Alexandre Rafalovitch 
 arafa...@gmail.com
  wrote:
 
  Which example are you using? Or how are you creating your collection?
 
  If you are using your example, it creates a new directory under
  example. If you are creating a new collection with -c, it creates
  a new directory under the server/solr. The actual files are a bit
  deeper than usual to allow for a log folder next to the collection
  folder. So, for example:
  example/schemaless/solr/gettingstarted/conf/solrconfig.xml
 
  If it's a dynamic schema configuration, you don't actually have
  schema.xml, but managed-schema, as you should be mostly using REST
  calls to configure it.
 
  If you want to see the configuration files before the collection
  actually created, they are under server/solr/configsets, though they
  are not configsets in Solr sense, as they do get copied when you
  create your collections (sharing them causes issues).
 
  Regards,
 Alex.
  
  Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
  http://www.solr-start.com/
 
 
  On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
   Hello,
  I have switched from solr 4.10.2 to solr 5.0.0. In
 solr
   4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/
 folder.
   Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want
 to
   know how to configure in solrcloud ?
 





Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-12 Thread Shawn Heisey
On 3/12/2015 9:18 AM, Erick Erickson wrote:
 By and large, I really never use linking. But it's about associating a
 config set
 you've _already_ uploaded with a collection.

 So uploading is pushing the configset from your local machine up to Zookeeper,
 and linking is using that uploaded, named configuration with an
 arbitrary collection.

 But usually you just make this association when creating the collection.

The primary use case that I see for linkconfig is in testing upgrades to
configurations.  So let's say you have a production collection that uses
a config that you name fooV1 for foo version 1.  You can build a test
collection that uses a config named fooV2, work out all the bugs, and
then when you're ready to deploy it, you can use linkconfig to link your
production collection to fooV2, reload the collection, and you're using
the new config.  I haven't discussed here how to handle the situation
where a reindex is required.

One thing you CAN do is run linkconfig for a collection that doesn't
exist yet, and then you don't need to include collection.configName when
you create the collection, because the link is already present in
zookeeper.  I personally don't like doing things this way, but I'm
pretty sure it works.

Thanks,
Shawn



Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-11 Thread Erick Erickson
The configs are in Zookeeper. So you have to switch your thinking,
it's rather confusing at first.

When you create a collection, you specify a config set, these are usually in

./server/solr/configsets/data_driven_schema,
./server/solr/configsets/techproducts and the like.

The entire conf directory under one of these is copied to Zookeeper
(which you can see
from the admin screen cloudtree, then in the right hand side you'll
be able to find the config sets
you uploaded.

But, you cannot edit them there directly. You edit them on disk, then
push them to Zookeeper,
then reload the collection (or restart everything). See the reference
guide here:
https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities

Best,
Erick

On Wed, Mar 11, 2015 at 6:01 AM, Nitin Solanki nitinml...@gmail.com wrote:
 Hi, alexandre..

 Thanks for responding...
 When I created new collection(wikingram) using solrCloud. It gets create
 into example/cloud/node*(node1, node2) like that.
 I have used *schema.xml and solrconfig.xml of sample_techproducts_configs*
 configuration.

 Now, The problem is that.
 If I change the configuration of *solrconfig.xml of *
 *sample_techproducts_configs*. Its configuration doesn't reflect on
 *wikingram* collection.
 How to reflect the changes of configuration in the collection?

 On Wed, Mar 11, 2015 at 5:42 PM, Alexandre Rafalovitch arafa...@gmail.com
 wrote:

 Which example are you using? Or how are you creating your collection?

 If you are using your example, it creates a new directory under
 example. If you are creating a new collection with -c, it creates
 a new directory under the server/solr. The actual files are a bit
 deeper than usual to allow for a log folder next to the collection
 folder. So, for example:
 example/schemaless/solr/gettingstarted/conf/solrconfig.xml

 If it's a dynamic schema configuration, you don't actually have
 schema.xml, but managed-schema, as you should be mostly using REST
 calls to configure it.

 If you want to see the configuration files before the collection
 actually created, they are under server/solr/configsets, though they
 are not configsets in Solr sense, as they do get copied when you
 create your collections (sharing them causes issues).

 Regards,
Alex.
 
 Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
 http://www.solr-start.com/


 On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
  Hello,
 I have switched from solr 4.10.2 to solr 5.0.0. In solr
  4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/ folder.
  Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want to
  know how to configure in solrcloud ?



Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-11 Thread Nitin Solanki
Thanks a lot Erick.. It will be helpful.

On Wed, Mar 11, 2015 at 9:27 PM, Erick Erickson erickerick...@gmail.com
wrote:

 The configs are in Zookeeper. So you have to switch your thinking,
 it's rather confusing at first.

 When you create a collection, you specify a config set, these are
 usually in

 ./server/solr/configsets/data_driven_schema,
 ./server/solr/configsets/techproducts and the like.

 The entire conf directory under one of these is copied to Zookeeper
 (which you can see
 from the admin screen cloudtree, then in the right hand side you'll
 be able to find the config sets
 you uploaded.

 But, you cannot edit them there directly. You edit them on disk, then
 push them to Zookeeper,
 then reload the collection (or restart everything). See the reference
 guide here:
 https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities

 Best,
 Erick

 On Wed, Mar 11, 2015 at 6:01 AM, Nitin Solanki nitinml...@gmail.com
 wrote:
  Hi, alexandre..
 
  Thanks for responding...
  When I created new collection(wikingram) using solrCloud. It gets create
  into example/cloud/node*(node1, node2) like that.
  I have used *schema.xml and solrconfig.xml of
 sample_techproducts_configs*
  configuration.
 
  Now, The problem is that.
  If I change the configuration of *solrconfig.xml of *
  *sample_techproducts_configs*. Its configuration doesn't reflect on
  *wikingram* collection.
  How to reflect the changes of configuration in the collection?
 
  On Wed, Mar 11, 2015 at 5:42 PM, Alexandre Rafalovitch 
 arafa...@gmail.com
  wrote:
 
  Which example are you using? Or how are you creating your collection?
 
  If you are using your example, it creates a new directory under
  example. If you are creating a new collection with -c, it creates
  a new directory under the server/solr. The actual files are a bit
  deeper than usual to allow for a log folder next to the collection
  folder. So, for example:
  example/schemaless/solr/gettingstarted/conf/solrconfig.xml
 
  If it's a dynamic schema configuration, you don't actually have
  schema.xml, but managed-schema, as you should be mostly using REST
  calls to configure it.
 
  If you want to see the configuration files before the collection
  actually created, they are under server/solr/configsets, though they
  are not configsets in Solr sense, as they do get copied when you
  create your collections (sharing them causes issues).
 
  Regards,
 Alex.
  
  Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
  http://www.solr-start.com/
 
 
  On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
   Hello,
  I have switched from solr 4.10.2 to solr 5.0.0. In solr
   4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/
 folder.
   Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want
 to
   know how to configure in solrcloud ?
 



Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-11 Thread Nitin Solanki
Hi, alexandre..

Thanks for responding...
When I created new collection(wikingram) using solrCloud. It gets create
into example/cloud/node*(node1, node2) like that.
I have used *schema.xml and solrconfig.xml of sample_techproducts_configs*
configuration.

Now, The problem is that.
If I change the configuration of *solrconfig.xml of *
*sample_techproducts_configs*. Its configuration doesn't reflect on
*wikingram* collection.
How to reflect the changes of configuration in the collection?

On Wed, Mar 11, 2015 at 5:42 PM, Alexandre Rafalovitch arafa...@gmail.com
wrote:

 Which example are you using? Or how are you creating your collection?

 If you are using your example, it creates a new directory under
 example. If you are creating a new collection with -c, it creates
 a new directory under the server/solr. The actual files are a bit
 deeper than usual to allow for a log folder next to the collection
 folder. So, for example:
 example/schemaless/solr/gettingstarted/conf/solrconfig.xml

 If it's a dynamic schema configuration, you don't actually have
 schema.xml, but managed-schema, as you should be mostly using REST
 calls to configure it.

 If you want to see the configuration files before the collection
 actually created, they are under server/solr/configsets, though they
 are not configsets in Solr sense, as they do get copied when you
 create your collections (sharing them causes issues).

 Regards,
Alex.
 
 Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
 http://www.solr-start.com/


 On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
  Hello,
 I have switched from solr 4.10.2 to solr 5.0.0. In solr
  4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/ folder.
  Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want to
  know how to configure in solrcloud ?



Re: Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-11 Thread Alexandre Rafalovitch
Which example are you using? Or how are you creating your collection?

If you are using your example, it creates a new directory under
example. If you are creating a new collection with -c, it creates
a new directory under the server/solr. The actual files are a bit
deeper than usual to allow for a log folder next to the collection
folder. So, for example:
example/schemaless/solr/gettingstarted/conf/solrconfig.xml

If it's a dynamic schema configuration, you don't actually have
schema.xml, but managed-schema, as you should be mostly using REST
calls to configure it.

If you want to see the configuration files before the collection
actually created, they are under server/solr/configsets, though they
are not configsets in Solr sense, as they do get copied when you
create your collections (sharing them causes issues).

Regards,
   Alex.

Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 11 March 2015 at 07:50, Nitin Solanki nitinml...@gmail.com wrote:
 Hello,
I have switched from solr 4.10.2 to solr 5.0.0. In solr
 4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/ folder.
 Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want to
 know how to configure in solrcloud ?


Where is schema.xml and solrconfig.xml in solr 5.0.0

2015-03-11 Thread Nitin Solanki
Hello,
   I have switched from solr 4.10.2 to solr 5.0.0. In solr
4-10.2, schema.xml and solrconfig.xml were in example/solr/conf/ folder.
Where is schema.xml and solrconfig.xml in solr 5.0.0 ? and also want to
know how to configure in solrcloud ?