我使用內部聯接Solr中及以下的查詢我工作得很好:{!從= _id加盟= relationships.collection2.key的fromIndex = collection2_shard1_replica1緩存=真}Solr中內使用查詢連接
_id:{!join from = _id to = relationships.collection3.key fromIndex = collection3_shard1_replica1 cache = true} name:「cloudProducts」
現在,我試圖使用IN查詢名稱條件,如name :(「cloudProducts 「或」mobileStation「或」standalone「),因此我將我的查詢設爲:
{!join from = _id to = relationships.covered.targets.key fromIndex = ap p.coveredassets_shard1_replica1 cache = true} _id:{!join from = _id to = relationships.product.targets.key fromIndex = app.products_shard1_replica1 cache = true} str_extensions.tenant.lineOfBusiness.value.name :(「cloudProducts」or「mobileStation 「或‘獨立’)
但它給出瞭解析異常。我試圖操縱語法,但沒有成功。是否有可能在Solr內部連接中使用IN查詢?誰能幫我這個?
如果你有默認的操作符爲OR,那麼你可以給這個查詢作爲 - name :('cloudProducts''mobileStation''standAlone')。您能否提供例外的詳細信息 –
否,或者不是默認運營商 – user3648827
「str_extensions.tenant.lineOfBusiness.value」這是什麼值?......它是「名稱」的前綴?......它不存在前面的查詢... –