Re: index join without query criteria

2020-06-08 Thread Mikhail Khludnev
or probably -director_id:[* TO *]

On Mon, Jun 8, 2020 at 10:56 PM Hari Iyer  wrote:

> Hi,
>
> It appears that a query criteria is mandatory for a join. Taking this
> example from the documentation: fq={!join from=id fromIndex=movie_directors
> to=director_id}has_oscar:true. What if I want to find all movies that have
> a director (regardless of whether they have won an Oscar or not)? This
> query: fq={!join from=id fromIndex=movie_directors to=director_id} fails.
> Do I just have to make up a dummy criteria like fq={!join from=id
> fromIndex=movie_directors to=director_id}id:[* TO *]?
>
> Thanks,
> Hari.
>
>

-- 
Sincerely yours
Mikhail Khludnev


index join without query criteria

2020-06-08 Thread Hari Iyer
Hi,

It appears that a query criteria is mandatory for a join. Taking this example 
from the documentation: fq={!join from=id fromIndex=movie_directors 
to=director_id}has_oscar:true. What if I want to find all movies that have a 
director (regardless of whether they have won an Oscar or not)? This query: 
fq={!join from=id fromIndex=movie_directors to=director_id} fails. Do I just 
have to make up a dummy criteria like fq={!join from=id 
fromIndex=movie_directors to=director_id}id:[* TO *]?

Thanks,
Hari.