Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
需要对schema.xml和solrconfig.xml进行更改_Solr_Configuration Files - Fatal编程技术网

需要对schema.xml和solrconfig.xml进行更改

需要对schema.xml和solrconfig.xml进行更改,solr,configuration-files,Solr,Configuration Files,我使用solrj添加了几个字段。我需要在solrconfig.xml和schema.xml中做哪些更改 我是solr的新手,希望得到一些帮助除非您正在更改solr实例的行为方式,否则不需要更改solrconfig.xml。添加字段只需要schema.xml包含以下行: <field name="myField" type="[field of a type defined in your schema]" indexed="true|false" stored="true|false"

我使用solrj添加了几个字段。我需要在solrconfig.xml和schema.xml中做哪些更改


我是solr的新手,希望得到一些帮助

除非您正在更改solr实例的行为方式,否则不需要更改solrconfig.xml。添加字段只需要schema.xml包含以下行:

<field name="myField" type="[field of a type defined in your schema]" indexed="true|false"  stored="true|false"  multiValued="true|false" /> 


值得注意的是,如果您在solrconfig.xml中的设置没有规定使用单独的schema.xml,那么它将默认使用托管架构文件。

您阅读了吗?如果您解释了添加的字段。。也许我们可以帮你。。否则,就像毛里西奥说的那样,这是一个阅读维基的案例。我这样做了,得到了一个错误未知的字段。我应该更改任何请求处理程序吗?代码:SolrInputDocument=new SolrInputDocument();字符串docID=“111221111”;doc.addField(“id”,docID,1.0f);文件添加字段(“名称”、“ESFDF”,1.0f);UpdateResponse upres=server.add(doc);如果您得到一个“未知字段”,那么很可能传入的XML中有一个未在模式中声明的字段。你能告诉我们你的id和名字字段的元素吗?