sirensolutions / siren-join

[This is the old, single node version for Elasticsearch 2.x, see the latest "Siren Federate" plugin for distributed Elasticsearch 5.x and 6.x capabilities]
http://siren.io
GNU Affero General Public License v3.0
183 stars 60 forks source link

Elasticsearch 2.2: "No query registered for [filterjoin]" #52

Closed jezell closed 8 years ago

jezell commented 8 years ago

Trying to install siren-join on Elasticsearch 2.2. Using simple dockerfile:

FROM elasticsearch:latest

RUN bin/plugin install solutions.siren/siren-join/2.2.0-1

Plugin appears in startup logs here:

[2016-03-15 20:00:50,737][INFO ][plugins ] [Turac] modules [lang-expression, lang-groovy], plugins [siren-join], sites []

However, when executing a query, filterjoin does not appear to be available:

{"error":{"root_cause":[{"type":"query_parsing_exception","reason":"No query registered for [filterjoin]","index":"objects","line":1,"col":12}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"objects","node":"MmpX7AI2TOydZBzDwxqbUA","reason":{"type":"query_parsing_exception","reason":"No query registered for [filterjoin]","index":"objects","line":1,"col":12}}]},"status":400}

jezell commented 8 years ago

Problem, was using _search endpoint in API instead of _coordinate_search.

Gautam17 commented 7 years ago

Hello, I'm new in elastic search..facing same issue while trying,

POST company/_coordinate_search
{
  "query": {
    "bool": {
            "must": {
        "match_all": {}
      },
      "filter": {
        "filterjoin": {
          "mentions": {
            "indices": [
              "company"
            ],
            "path": "id",
            "query": {
              "term": {
                "name": "orient"
              }
            }
          }
        }
      }
    }
  }
}

error=

"root_cause": [
      {
        "type": "invalid_type_name_exception",
        "reason": "Document mapping type name can't start with '_', found: [_coordinate_search]"
      }
    ]

can anyone help to solve this thanks in advance

rendel commented 7 years ago

@Gautam17 is the plugin properly installed on all the nodes ?

Gautam17 commented 7 years ago

@rendel normal query like match_all is working properly.