Hi,

I don’t seem to get the behaviour of the intersect() stream decorator.
I only ever get one doc from the left stream when I would have expected 
more than one.

I constructed a test case that does not depend on my concrete index:

intersect(
cartesianProduct(tuple(fieldA=array(c,c,a,b,d,d)), fieldA, productSort="fieldA 
asc"),
cartesianProduct(tuple(fieldB=array(c,c,a,d,d)), fieldB, productSort="fieldB 
asc"),
on="fieldA=fieldB“
)


The result:

{
  "result-set": {
    "docs": [
      {
        "fieldA": "a"
      },
      {
        "EOF": true,
        "RESPONSE_TIME": 0
      }
    ]
  }
}


I would have expected all the docs from the left stream with fieldA values a, 
c, d
and only the docs with fieldA == b missing.  Do I have a fundamental 
misunderstanding?


Best regards
Christian Spitzlay


Reply via email to