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+Definition+in+SolrConfig#SchemaFactoryDefinitioninSolrConfig-SwitchingfromManagedSchematoManuallyEditedschema.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><str 
> name="error-class">org.apache.solr.update.processor.DistributedUpdateProcessor$DistributedUpdatesAsyncException</str><str
>  
> name="root-error-class">org.apache.solr.update.processor.DistributedUpdateProcessor$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&amp;update.distrib=TOLEADER&amp;distrib.from=http%3A%2F%2F165.137.46.218%3A8983%2Fsolr%2Fgsearch_shard2_replica1%2F&amp;wt=javabin&amp;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
>
>

Reply via email to