2
我想在另一個選擇做一個查詢。Solr,選擇在哪裏
我想這樣做:
select?q=*:* AND id_user=5&fl=id_other
select?q=test AND -id(the result of the other select)&fl=id
所以:
select?q=test AND -id(select?q=* AND id_user=5&fl=id_other)&fl=id
這可能嗎?或者我必須做兩個分離選擇?
$ids = select?q=*:* AND id_user=5&fl=id_other
$result = select?q=test AND -id(implode(' AND ', $ids))&fl=id
謝謝!
首先,你應該問自己,爲什麼你需要那個。看起來您正在使用SQL查詢關係數據庫,但您使用的是Solr。 – javanna 2012-08-07 09:22:09