我在SOLR中有2个文件:
第一
id = 125
spell = Quanti disperati si rovescerebbero con i barconi sulle nostre coste...
第二
id = 321
spell = Quanti disperati si rovescerebbero con i barconi sulle nostre coste...
http:// localhost:8080 / solr / select?q = {!type = edismax qf = spell v ='disperati si rovescerebbe *'} - 对我来说工作正常,它返回2文档,但我如何通过id添加到此查询搜索?
我需要这样的东西: http:// localhost:8080 / solr / select?q = {!type = edismax qf = spell v ='disperati si rovescerebbe *'}& {!type = edismax qf = id v ='125'} - 不正确。
答案 0 :(得分:3)
如果您知道id为何不使用 -
http://localhost:8080/solr/select?q={!type=edismax qf=spell v='disperati si rovescerebbe*'}&fq=id:125