Solr:仅从JSON文件导入某些字段

Solr:仅从JSON文件导入某些字段,json,solr,Json,Solr,我在这个结构中有几个JSON文件: { "book" : { "truncated" : "true", "title": "This is a very long book title and theref" "full_title" : "This is a very long book title and therefore it is truncated" } } 或者它可以像这样: { "book" : { "truncated" : "f

我在这个结构中有几个JSON文件:

{
  "book" : {
    "truncated" : "true",
    "title": "This is a very long book title and theref"
    "full_title" : "This is a very long book title and therefore it is truncated"
  }
}
或者它可以像这样:

{
  "book" : {
    "truncated" : "false",
    "title": "This is a very short title"
  }
}
我想将这些文件导入Solr 7.4.0。My schema.xml具有以下定义:

<field name="booktitle" type="string"/>


现在,当我导入数据时,我希望始终获取
full\u title
的内容,如果
truncated
为真,否则
title
。正确的机制是什么?

现在如何导入数据?正如默认solr配置所建议的那样。哪种机制?您是否将数据发布到端点,发布到
extract
处理程序,是否使用DIH或使用Solr库提交数据?