lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <gge...@gmail.com>
Subject Re: Expressing "not equals" in Block Join Parent Query
Date Thu, 06 Apr 2017 07:49:04 GMT
&fq={!parent which="contentType_s:Header"}accountNo_s:* -accountNo_s
:"123456"

05 апр. 2017 г. 21:47 пользователь "Zheng Lin Edwin Yeo" <
edwinyeozl@gmail.com> написал:

> Hi,
>
> Is there any way which we can express not equals in Block Join Parent
> Query?
>
> For example, I want to find accountNo_s that is not equal to 123456
>
> Currently, I am putting it in this way for it to work:
> &fq={!parent which="contentType_s:Header"}accountNo_s:* AND !accountNo_s
> :"123456"
>
> It does not work when I put it this way:
> &fq={!parent which="contentType_s:Header"}!accountNo_s :"123456"
>
> But I don't think it is a good practice to put the additional accountNo_s:*
> before that. Is there other better way which we could query this?
>
> I'm using Solr 6.4.2
>
>
> Regards,
> Edwin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message