Erick, I have tested it on Solr Stand-alone mode and it works perfectly fine To answer your other question, Yes I have uploaded all my config files including tikaConfig file to Zookeeper using solr upconfig command as below
./solr zk -upconfig -n gsearch -d /app/platform/solr1/server/solr/configsets/gsearch/conf -z codesolr-as-r3p:21810,codesolr-as-r3p:21811,codesolr-as-r3p:21812 After this I have created my collection as below command ./solr create_collection -c gsearch -d /app/platform/solr1/server/solr/configsets/gsearch/conf -n gsearch -shards 2 -replicationFactor 2 -p 8983 Regards, ~Sri -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Monday, February 06, 2017 10:21 PM To: solr-user <solr-user@lucene.apache.org> Subject: Re: Switching from Managed Schema to Manually Edited schema.xml --IS NOT WORKING You did not answer whether you uploaded your configs to Zookeeper and reloaded the collection. Providing configs will not help you with that. What I'd advise: First get it working in stand-alone mode without Solr cloud at all. That should be quite simple, all on your local machine. Then migrate to SolrCloud so you're only changing one thing at a time. Best, Erick On Mon, Feb 6, 2017 at 9:54 AM, Anatharaman, Srinatha (Contractor) <srinatha_ananthara...@comcast.com> wrote: > Erick, > > I did as mentioned in that URL, made changes to solrconfig and kept > only required fields in schema.xml Would you mind sharing config files for > indexing text document? > > Regards, > ~Sri > > -----Original Message----- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Monday, February 06, 2017 12:22 AM > To: solr-user <solr-user@lucene.apache.org> > Subject: Re: Switching from Managed Schema to Manually Edited > schema.xml --IS NOT WORKING > > This is still using the managed schema specifically the data_driven_configs > schema as evidenced by the add-unknown-field-to-the-schema part of the URL. > > It looks like you're not _really_ removing the managed schema > definitions from your solrconfig.xml. You must > 1> change solrconfig.xml > 2> push it to ZooKeeper > 3> reload the collection > > before the config changes actually take effect. > > Best, > Erick > > On Sun, Feb 5, 2017 at 9:05 PM, Anatharaman, Srinatha (Contractor) > <srinatha_ananthara...@comcast.com> wrote: >> Hi , >> >> I am indexing a Text document and followed the steps defined in below >> URL to create the schema.xml >> https://cwiki.apache.org/confluence/display/solr/Schema+Factory+Defin >> i >> tion+in+SolrConfig#SchemaFactoryDefinitioninSolrConfig-SwitchingfromM >> tion+in+a >> nagedSchematoManuallyEditedschema.xml >> >> After making above changes, When I try to index the document using curl >> command I get below error : >> >> <?xml version="1.0" encoding="UTF-8"?> <response> <lst >> name="responseHeader"><int name="status">400</int><int >> name="QTime">147</int></lst><lst name="error"><lst >> name="metadata"><str >> name="error-class">org.apache.solr.common.SolrException</str><str >> name="root-error-class">org.apache.solr.common.SolrException</str><st >> r >> name="error-class">org.apache.solr.update.processor.DistributedUpdate >> P rocessor$DistributedUpdatesAsyncException</str><str >> name="root-error-class">org.apache.solr.update.processor.DistributedU >> p dateProcessor$DistributedUpdatesAsyncException</str></lst><str >> name="msg">Async exception during distributed update: Bad Request >> >> >> >> request: >> http://165.137.46.219:8983/solr/gsearch_shard1_replica2/update?update. >> chain=add-unknown-fields-to-the-schema&update.distrib=TOLEADER&am >> p >> ;distrib.from=http%3A%2F%2F165.137.46.218%3A8983%2Fsolr%2Fgsearch_sha >> r d2_replica1%2F&wt=javabin&version=2</str><int >> name="code">400</int></lst> </response> >> >> Could someone help me to resolve this issue, How do I create a >> schema.xml file for a text document(document content varies for each >> files). I want to index entire document as whole and search on the >> document content >> >> Thanks & Regards, >> ~Sri >> >> >