JoinQueryBuilder#doToQuery() should not be called

Hi everyone, could you please help me with the join query, installed plugin

48ca8727aa41 siren-federate 7.10.1-22.0

I’m getting all the time the error:

failed to create query: JoinQueryBuilder#doToQuery() should not be called

even with demo data and instructions I’ve got from here:
[Query domain-specific language (DSL) :: SIREN DOCS](https://siren federate guide)

here is my test indexes:

PUT /movies
{
  "mappings": {
    "properties": {
      "name": {
        "type": "keyword"
      },
      "actor": {
        "type": "keyword",
        "doc_values": true
      }
    }
  }
}

PUT /people
{
  "mappings": {
    "properties": {
      "name": {
        "type": "keyword"
      },
      "uid": {
        "type": "keyword",
        "doc_values": true
      }
    }
  }
}

POST /movies/_doc/1
{
  "name": "Iron",
  "actor": "1"
}

POST /people/_doc/1
{
  "name": "Matt",
  "uid": "1"
}

GET /movies/_search
{
   "query" : {
      "join" : {                      
        "indices" : ["people"],    
        "on" : ["actor", "uid"]
      }
    }
}

Hi Pavel,
this error occurs when the endpoint is missing the word siren as written in the doc mentioned Query domain-specific language (DSL) :: SIREN DOCS.
The search should instead be

GET /siren/movies/_search

Best,
Johnny

3 Likes

Yeah, it works! Thank you Johnny!