Sankalp,
would you mind to post debugQuery=on output, without it it's hard to get
what's the problem?
However, it's worth to mention that Andrey's suggestion seems really
promising.
On Tue, Feb 17, 2015 at 8:19 PM, Sankalp Gupta
wrote:
> Hi Mikhail,
>
> It won't solve my problem.
> For ex:
> S
How about find all parents which have at least one child with address:city1
and then "not"
Like (not sure about syntax at all)
q=-{!parent which=userid:*}address:city1
17.02.2015, 20:21, "Sankalp Gupta" :
> Hi Mikhail,
>
> It won't solve my problem.
> For ex:
> Suppose my docs are like this:
>
Hi Mikhail,
It won't solve my problem.
For ex:
Suppose my docs are like this:
city1
city2
city2
city3
Now if I want* a query to return me all the users not having any address*
related to *city1* (i.e. only userid=2 should be in the result)a
try to search all children remove those who has a value1 by dash, then join
remaining
q={!parent which=contentType:parent}contentType:child -contentType:value1
if the space in underneath query causes the problem try to escape it or
wrap to v=$subq
On Tue, Feb 17, 2015 at 4:13 PM, Sankalp Gupta
Hi
I need to have a query in which I need to choose only those parent docs
none of whose children's field is having the specified value.
i.e. I need something like this:
http://localhost:8983/solr/core1/select?*q={!parent
which=contentType:parent}childField:NOT value1*
The problem is* NOT operato