lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anatharaman, Srinatha (Contractor)" <Srinatha_Ananthara...@comcast.com>
Subject RE: Switching from Managed Schema to Manually Edited schema.xml --IS NOT WORKING
Date Mon, 06 Feb 2017 17:54:56 GMT
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:erickerickson@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_Anantharaman@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+Defini
> tion+in+SolrConfig#SchemaFactoryDefinitioninSolrConfig-SwitchingfromMa
> 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><str 
> name="error-class">org.apache.solr.update.processor.DistributedUpdateP
> rocessor$DistributedUpdatesAsyncException</str><str 
> name="root-error-class">org.apache.solr.update.processor.DistributedUp
> 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&amp;update.distrib=TOLEADER&amp
> ;distrib.from=http%3A%2F%2F165.137.46.218%3A8983%2Fsolr%2Fgsearch_shar
> d2_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
>
>

Mime
View raw message