Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.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
Solr按URLDataSource索引-如何在请求url中添加标题_Solr_Content Type - Fatal编程技术网

Solr按URLDataSource索引-如何在请求url中添加标题

Solr按URLDataSource索引-如何在请求url中添加标题,solr,content-type,Solr,Content Type,我想索引使用URLDASURCE从url检索的xml 数据配置文件片段如下所示: <dataSource type="URLDataSource" readTimeout="100000" /> <document> <entity processor="XPathEntityProcessor" url="${dataimporter.request.url}" 我也有类似的问题。我们正在使用.NETWebAPI服务作为我们收集的数据源,需要告诉服务

我想索引使用URLDASURCE从url检索的xml

数据配置文件片段如下所示:

<dataSource type="URLDataSource" readTimeout="100000"  />
<document>
    <entity processor="XPathEntityProcessor" url="${dataimporter.request.url}"


我也有类似的问题。我们正在使用.NETWebAPI服务作为我们收集的数据源,需要告诉服务为我们提供XML而不是JSON(WebAPI的默认值)。理想情况下,我们会让服务保持普通状态,即不更改其默认序列化程序。您是否找到解决方案?