Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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 解决方案4.10.2-数据导入解决方案-问题_Solr_Lucene_Solr4 - Fatal编程技术网

Solr 解决方案4.10.2-数据导入解决方案-问题

Solr 解决方案4.10.2-数据导入解决方案-问题,solr,lucene,solr4,Solr,Lucene,Solr4,关于使用DataImportHandler将数据加载到Solr中,我有一个问题 我有一个xml文件,需要通过Xpath transformer使用数据导入处理程序加载到Solr中: XML文件结构为: <record> <item> <tags> <tag1> <tag> <id>01</id>

关于使用DataImportHandler将数据加载到Solr中,我有一个问题

我有一个xml文件,需要通过Xpath transformer使用数据导入处理程序加载到Solr中:

XML文件结构为:

<record>
    <item>
        <tags>
            <tag1>
                <tag>
                    <id>01</id>
                    <value>value01</value>
                </tag>
                <tag>
                    <id>02</id>
                    <value>value02</value>
                </tag>
            <tag1>
            <tag2>
                <tag>
                    <id>03</id>
                    <value>value03</value>
                </tag>              
            <tag2>
            <tag3>
                <tag>
                    <id>04</id>
                    <value>value04</value>
                </tag>
                <tag>
                    <id>05</id>
                    <value>value05</value>
                </tag>
                <tag>
                    <id>06</id>
                    <value>value06</value>
                </tag>              
            <tag3>              
        </tags>
    </item>
</record>

01
价值01
02
价值02
03
价值03
04
价值04
05
价值05
06
价值06
我可以使用/record/item/tags//tag/id在多值字段中加载数据,但我需要维护id与值的关系,我的意思是我需要一种方法,以便在查询时可以获得与id相关的值

请给我一些建议。提前谢谢