Manage schema.xml via Solrj?

2016-01-07 Thread Bob Lawson
I want to programmatically make changes to schema.xml using java to do it. Should I use Solrj to do this or is there a better way? Can I use Solrj to make the rest calls that make up the schema API? Whatever the answer, can anyone point me to an example showing how to do it? Thanks!

Re: Manage schema.xml via Solrj?

2016-01-08 Thread Bob Lawson
these, see: > https://wiki.apache.org/solr/HowToContribute > > Best, > Erick > > On Thu, Jan 7, 2016 at 7:01 PM, Binoy Dalal > wrote: > > I am not sure about solrj but you can use any XML parsing library to > > achieve this. > > Take a look here: > >

Re: Manage schema.xml via Solrj?

2016-01-09 Thread Bob Lawson
's a bit generic in the guess work and I >> did not spend much time testing it out so I am not really versed in >> operating it. I got myself mack to schema.xml ASAP. My thoughts are you are >> looking at a lot of work for little gain. >> >> Best, >> >

Solr trying to auto-update schema.xml

2016-01-19 Thread Bob Lawson
I added some fields to schema.xml. I then use a custom extension of UpdateRequestProcessor to add those fields to a document being indexed. When I run the post command, I am getting an error because apparently Solr is trying to add more fields over and above what I manually added. Here is the err

Re: Solr trying to auto-update schema.xml

2016-01-19 Thread Bob Lawson
ehow using managed schema. > > And is the error above from the Solr log or your client? Because > the Solr log often has more complete information. > > Best, > Erick > > On Tue, Jan 19, 2016 at 9:54 AM, Bob Lawson wrote: > > I added some fields to schema.xml. I then

Re: Solr trying to auto-update schema.xml

2016-01-19 Thread Bob Lawson
he-schema > > > > As to what field is in the doc but not in the schema, the solr log > will probably help... > > Best, > Erick > > On Tue, Jan 19, 2016 at 10:19 AM, Bob Lawson > wrote: > > > > > > > > > > > > > > &

Re: Solr trying to auto-update schema.xml

2016-01-19 Thread Bob Lawson
PS: I followed the advice given here <http://stackoverflow.com/questions/29819854/how-does-solrs-schema-less-feature-work-how-to-revert-it-to-classic-schema>to update my solrconfig.xml file to get rod of add-unknown-fields-to-the-schema On Tue, Jan 19, 2016 at 1:45 PM, Bob Lawson

Re: Solr trying to auto-update schema.xml

2016-01-20 Thread Bob Lawson
Thanks, I was using an invalid field type. All is good now. Thanks Hoss and Eric. You guys are the best! On Tue, Jan 19, 2016 at 6:47 PM, Chris Hostetter wrote: > > : Thanks, very helpful. I think I'm on the right track now, but when I do > a > : post now and my UpdateRequestProcessor extens

sharedLib node in solr.xml

2016-01-21 Thread Bob Lawson
I am working with the gettingstarted example from the Solr Quick Start guide. I developed a couple of Solr plugins and I want to tell Solr where to find them, and I'm following this guide to do it. For a single core it was easy, I just put them in a lib

Re: sharedLib node in solr.xml

2016-01-21 Thread Bob Lawson
t can't find the jar containing MyQueryComponent. I know I'm doing something wrong, but I'm stuck again. Thanks in advance for any further advice. On Thu, Jan 21, 2016 at 2:04 PM, Shawn Heisey wrote: > On 1/21/2016 11:13 AM, Bob Lawson wrote: > > I am working with the gett

Re: sharedLib node in solr.xml

2016-01-21 Thread Bob Lawson
t can't find the jar containing MyQueryComponent. I know I'm doing something wrong, but I'm stuck again. Thanks in advance for any further advice. On Thu, Jan 21, 2016 at 2:21 PM, Bob Lawson wrote: > Thanks. I tried what you said and sill have problems. I removed > shared

Re: sharedLib node in solr.xml

2016-01-21 Thread Bob Lawson
preciate those who have taken time to help and appreciate any continued support I can get. Thanks!!! On Thu, Jan 21, 2016 at 2:22 PM, Bob Lawson wrote: > Correction: > > Thanks. I tried what you said and sill have problems. I removed > sharedLib from solr.xml, so solr.xml is back to its o

Re: sharedLib node in solr.xml

2016-01-21 Thread Bob Lawson
lib into /solr-5.4.0/server/solr Thank you so much for your help! You guys are great and provide a wonderful service to us novices. On Thu, Jan 21, 2016 at 4:54 PM, Shawn Heisey wrote: > On 1/21/2016 1:56 PM, Bob Lawson wrote: > >> I then copied the exact same solrconfig.xml file