SOLR:从特定实体获取数据

时间:2015-02-24 12:39:58

标签: solr

我有多个具有相同字段名称的实体,即名称

现在我在运行http://localhost:8983/solr/test/select?q=name:Ch *& wt = json

时想要

仅来自特定实体的数据,现在从所有实体获取数据

有没有办法做到这一点......

 <dataConfig>
 <dataSource name="fds" encoding="UTF-8" baseUrl="file://localhost/tmp/test/"  type="URLDataSource" />
    <document>

 <entity name="tags"
                processor="LineEntityProcessor"
                dataSource="fds"
                url="tags.csv"
                rootEntity="true"
                transformer="RegexTransformer" >
          <field column="rawLine"
                 regex="^(.*),(.*),(.*)$"
                 groupNames="id,name," />
        </entity>
           <entity name="status"
                processor="LineEntityProcessor"
                dataSource="fds"
                url="status.csv"
                rootEntity="true"
                transformer="RegexTransformer" >
          <field column="rawLine"
                 regex="^(.*),(.*),(.*)$"
                 groupNames=",name," />

        </entity>

0 个答案:

没有答案