小编Bra*_*Rao的帖子

solr查询与空白区域

我搜索一个单词,我得到结果与facet如下

<lst name="itemtype">
<int name="Internal">108</int>
<int name="Users">73</int>
<int name="Factory">18</int>
<int name="Supply Chain Intermediaries">6</int>
<int name="Company">1</int>
<int name="Monitor/Auditor firm">0</int>
</lst>
Run Code Online (Sandbox Code Playgroud)

然后我写了像fq = itemtype:Factory我得到的结果.但我没有得到fq = itemtype:供应链中介的结果.我正在考虑条件中的空间问题(供应链中介),我尝试使用urlencode(空格替换为%20).但没用.你能帮我解决一下吗?

更新:

对于单值,它工作正常.我像这样构建查询

http:localhost:8080/solr/select/?q=adidas&version=2.2&indent=on&facet=on&start=0&rows=20&fq={!raw f=itemtype}Supply Chain Intermediaries
Run Code Online (Sandbox Code Playgroud)

但我需要为多个值写.带有raw的原始Query 如下

http://localhost/solr/select/?q=adidas&version=2.2&indent=on&facet=on&start=0&rows=20&fq=(itemtype:Company itemtype:Supply Chain Intermediaries)
Run Code Online (Sandbox Code Playgroud)

你能帮我解决一下吗?

solr

30
推荐指数
2
解决办法
4万
查看次数

solr DIH中的delta-import问题

当我运行full_import命令时它工作正常.更新的日期将写入dataimport.properties文件.当我运行delta-import时,它会使Indexing失败.回滚所有更改.. dataimport.properties文件已创建,并在solr/conf/location中具有777权限.

请帮我解决这个问题.


@mbonaci

data-config.xml中的查询,deltaImportQuery和deltaQuery如下所示

    <entity name="item" query="select group_title,description,DATE_FORMAT(created_date, '%Y-%m-%dT%H:%i:%sZ') as createdDate,group_status, 'GROUP' as itemtype,group_id as id from collaboration_groups where group_status=1" 
deltaImportQuery="select group_title,description,DATE_FORMAT(created_date, '%Y-%m-%dT%H:%i:%sZ') as createdDate,group_status,group_id as id,'GROUP' as itemtype  from collaboration_groups where group_status=1 and group_id=${dataimporter.delta.id} "  
deltaQuery="select group_id from collaboration_groups where group_status=1 and  updated_date &gt; '${dataimporter.last_index_time}'" deletedPkQuery="select group_id  from  collaboration_groups  where group_status = 0 and updated_date &gt; '${dataimporter.last_index_time}'">
            <field column="id"  name="id" />
            <field column="itemtype" name="itemtype" />
            <field column="group_title" name="fullName" />
            <field column="description" name="description"/>
            <field column="createdDate" name="createdDate"/>
</entity>
Run Code Online (Sandbox Code Playgroud)

config.xml中dataImport请求处理程序的config参数如下

<requestHandler …
Run Code Online (Sandbox Code Playgroud)

solr dataimporthandler

1
推荐指数
1
解决办法
4675
查看次数

标签 统计

solr ×2

dataimporthandler ×1