Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.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
如何为redmine时间项XML构建Solr模式_Xml_Solr_Redmine - Fatal编程技术网

如何为redmine时间项XML构建Solr模式

如何为redmine时间项XML构建Solr模式,xml,solr,redmine,Xml,Solr,Redmine,我需要将一些redmine时间条目提供给solr,以便为以后的可视化做一些查询,所以我使用这个REST命令导出了时间条目XML MyRedmineServerSite/time_entries.xml?limit=1000 现在,如果我们有这个xml文档示例: <time_entry> <id>552479</id> <project id="195" name="SomeProject"/> <issue id="10

我需要将一些redmine时间条目提供给solr,以便为以后的可视化做一些查询,所以我使用这个REST命令导出了时间条目XML

MyRedmineServerSite/time_entries.xml?limit=1000
现在,如果我们有这个xml文档示例:

 <time_entry>
   <id>552479</id>
   <project id="195" name="SomeProject"/>
   <issue id="10716"/>
   <user id="58" name="some user"/>
   <activity id="8" name="someTask"/>
   <hours>1.0</hours>
   <comments>some comment</comments>
   <spent_on>2015-02-19</spent_on>
   <created_on>2015-02-19T13:08:23+02:00</created_on>
   <updated_on>2015-02-19T13:08:23+02:00</updated_on>
   <custom_fields type="array">
    <custom_field id="8" name="Billable">
     <value>0</value>
    </custom_field>
   </custom_fields>
 </time_entry>

552479
1
一些评论
2015-02-19
2015-02-19T13:08:23+02:00
2015-02-19T13:08:23+02:00
0
我搜索了为此类内容的新索引创建schema.xml,发现它应该有多个字段,我搜索了多个字段,看到了货币案例,但不确定如何将其应用到我的案例中,非常感谢您的帮助