我有一个apache solr(版本6.2)和tika的项目。我配置了schema.xml,data-config.xml和solrconfig.xml,但是当我尝试使用方法\ update \ extract \上传pdf时,日志显示错误。
的错误:
Add-ADGroupMember : A global group cannot have a universal group as a member
At line:1 char:124
+ Get-ADGroupMember -Identity "distribution_group" | ForEach-Object { Add-ADGroupMember <<<< -Identity "SG_users"
-Members $_ }
+ CategoryInfo : NotSpecified: (SG_users:ADGroup) [Add-ADGroupMember], ADException
+ FullyQualifiedErrorId : A global group cannot have a universal group as a member,Microsoft.ActiveDirectory.Management.Commands.AddADGroupMember
以及此Java错误:
Status: failure
Response:
{
"responseHeader": {
"status": 400,
"QTime": 1664
},
"error": {
"metadata": [
"error-class",
"org.apache.solr.common.SolrException",
"root-error-class",
"org.apache.solr.common.SolrException"
],
"msg": "undefined field: \"language\"",
"code": 400
}
}
有人可以帮帮我吗?
答案 0 :(得分:1)
检查schema.xml文件是否缺少语言字段及其类型定义。 将语言字段添加到模式文件中。 例如:
<field name="language" type="text_english" indexed="true" stored="true"/>
text_english的字段定义
<fieldType name="text_english" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>