wikimedia / search-highlighter

Github mirror of "search/highlighter" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
100 stars 36 forks source link

"unknown highlighter type" in elasticsearch 1.4.3 #11

Open sschuerz opened 9 years ago

sschuerz commented 9 years ago

I've now tried to use the experimental highlighter in elasticsearch 1.4.3, but I get the error "unknown highlighter type [experimental] ...". Is elasticsearch 1.4.3 not yet supported or did I hit a bug here?

Here is a minimal scenario that gives me the error message:

PUT test_experimental_highlighter

POST test_experimental_highlighter/test_type/
{
  "field": "value"
}

GET test_experimental_highlighter/_search
{
  "query": {
    "match": {
      "field": "value"
    }
  },
  "highlight": {
    "type": "experimental",
    "fields": {
      "*": {}
    }
  }
}

Also, the plugin does not show up in the _nodes endpoint of my elasticsearch installation ...

nik9000 commented 9 years ago

It should work if you use 1.4.1.

nik9000 commented 9 years ago

Just trying to clear these out - if it doesn't show up in the _nodes endpoint it looks like the plugin isn't loading at all. Did you restart after installing it? Are you sure the jars are in the plugins directory?