0
我有這種類型的輸出中GENRAL另一個查詢中的Solr字段值?可能嗎?
"docs": [
{
"id": "552e1acd5971b",
"product_id": "NOT05253",
"attribute_id": 0,
"attribute_name": "Brend",
"value_id": 12923,
"value_name": "ACER",
"category_id": 166,
"_version_": 1498504104368930800
},
{
"id": "552e1acd7d479",
"product_id": "NOT05604",
"attribute_id": 0,
"attribute_name": "Brend",
"value_id": 12923,
"value_name": "ACER",
"category_id": 166,
"_version_": 1498504104523071500
},
{
"id": "552e1acdc9c7c",
"product_id": "NOT05988",
"attribute_id": 0,
"attribute_name": "Brend",
"value_id": 12923,
"value_name": "ACER",
"category_id": 166,
"_version_": 1498504104851275800
},
{
"id": "552e1acdef261",
"product_id": "NOT06361",
"attribute_id": 0,
"attribute_name": "Brend",
"value_id": 12923,
"value_name": "ACER",
"category_id": 166,
"_version_": 1498504105011708000
}, .....
在地方執法機關的product_id比賽在另一個查詢一個的product_id ...
category_id:166 AND value_id:12923
AND product_id:(_query_:"value_id:64 ")
我使用的是什麼,我試圖做的是得到結果這使得EAV產品過濾更快,並且此查詢特別必須縮短ACER筆記本的產品ID號,其變化與15.6「屏幕尺寸:)
另一個詞 - 類似SQL查詢:
SELECT * FROM table WHERE value_id=12923 AND product_id IN (SELECT product_id FROM table WHERE value_id=64)
有沒有粘性? :D