2012-12-25 21 views

回答

3

,你可以嘗試通過多個ID與查詢q=id:(document_id1 OR document_id2 OR document_id3): -

例如

http://localhost:8080/solr/select/?qt=mlt&q=id:(document_id1 OR document_id2 OR document_id3)&mlt.fl=[field1],[field2],[field3]&fl=id&rows=10 
+0

我想這樣或語法,但我只是得到一個錯誤:查詢解析錯誤:無法解析 'ID:[1004401713626 OR 1000302912757]':遇到 「」 1000302912757 「」 第1行,列21 。 期待: 「]」... –

+0

對不起,它應該可能在曲線括號內。編輯答案。 – Jayendra

+0

這仍然只給出第一個doc的結果! –