如何更改此solr查询
下面是我在用户键入某个字符时对solr的查询示例I如何更改此solr查询,solr,Solr,下面是我在用户键入某个字符时对solr的查询示例I http://localhost:8983/solr/db/select?q=(name:I*) OR (lastname: I*) OR (midname:I*)&fl=name, midname,lastname&rows=5&wt=json&indent=true&group=true&group.field=lastname&group.ngroups=true"; 我应该如何将
http://localhost:8983/solr/db/select?q=(name:I*) OR (lastname: I*) OR (midname:I*)&fl=name, midname,lastname&rows=5&wt=json&indent=true&group=true&group.field=lastname&group.ngroups=true";
我应该如何将查询更改为solr以便我可以得到
除非您正在编写自定义搜索组件或根据以前的查询结果再次触发查询,否则无法检查0结果 对于排序,您可以增强查询部分,以便匹配条件 例如
(名称:I*)^10或(姓氏:I*)^5或(中间名:I*)^1