select * from A left join B on A.id = B.id
where B.name = 'qiwu' and B.age > 20
如果sql这样写,换成solr的查询语句应该怎么写??求助大神!!
{!join fromIndex=B from=id to id}name:qiwu and age:[20 TO *] (我是这样写的,但不行)
select * from A left join B on A.id = B.id
where B.name = 'qiwu' and B.age > 20
如果sql这样写,换成solr的查询语句应该怎么写??求助大神!!
{!join fromIndex=B from=id to id}name:qiwu and age:[20 TO *] (我是这样写的,但不行)
{!join fromIndex=B from=id to id}name:qiwu AND age:[20 TO *] ,注意AND要大写!
如果要加A表的条件,则要把{!join fromIndex=B from=id to id}name:qiwu AND age:[20 TO *]放到fq
正确格式:fq={!join fromIndex=B from=id to id}name:qiwu AND age:[20 TO *]&q=A.xxx:111