0
我試圖在Solr的一組查詢是Solr的組查詢與正常的結果
http://localhost:8983/solr/venue/select?q=allText%3A%22holiday+inn%22&rows=100&wt=json&indent=true&group=true&group.query=title:(holiday%20inn)&group.limit=10
這給了我結果,其中「假日酒店」的稱號相匹配一起返回結果,allText場是一個副本字段,具有從田地標題,位置和描述
我試過被設置
group.main=true
值,但這樣做後,它給了我不分組的所有記錄。 我想是與集團的所有記錄提前
的建議後,我使用的查詢是
http://localhost:8983/solr/venue/select?wt=json&indent=true&q=*%3A*&wt=json&rows=100000&fq=title:%22holiday%20inn%22&fl=title&group=true&group.field=title&group.limit=100000
,這給我造成
"responseHeader":{
"status":0,
"QTime":30,
"params":{
"q":"allText:(holiday inn)",
"indent":"true",
"fl":"title",
"group.limit":"100000",
"fq":"title:\"holiday inn\"",
"rows":"100000",
"wt":["json",
"json"],
"group.field":"title",
"group":"true"}},
"grouped":{
"title":{
"matches":1,
"groups":[{
"groupValue":"holiday",
"doclist":{"numFound":1,"start":0,"docs":[
{
"id":209,
"title":"Holiday Inn"}]
}}]}}]
沿
感謝這個組的結果是正確的,我也可以得到q = allText的結果:(假日酒店)沒有組給出25個匹配結果??
我已經添加了結果集和確切的查詢,組結果正在好起來,只是我需要其他結果集以及組集。可能嗎? – Roan