# Unable to access a token filter installed as a plugin

**URL:** <https://discuss.elastic.co/t/unable-to-access-a-token-filter-installed-as-a-plugin/22016>\
**Category:** Elasticsearch\
**Created:** [February 6, 2015, 5:49pm UTC](https://discuss.elastic.co/t/unable-to-access-a-token-filter-installed-as-a-plugin/22016 "2015-02-06T17:49:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harding](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@John\_Harding](https://discuss.elastic.co/u/John_Harding)\
**Post date:** [February 6, 2015, 5:49pm UTC](https://discuss.elastic.co/t/unable-to-access-a-token-filter-installed-as-a-plugin/22016/1 "2015-02-06T17:49:01Z")

</div>

I'm an ES noob - I've tried searching for an answer but haven't been able  
to find one so far.

Environment: OSX, NetBeans, ES 1.4.2, Sense

I've created a plugin (modeled after analysis-phonetic) - src is attached  
as a zip (I hope that's acceptable list etiquette?)

I built the plugin using NetBeans.

I installed the plugin using: plugin --url  
file:target/elasticsearch-analysis-units-1.0.0-SNAPSHOT.jar --install  
analysis-units

I restarted elastic search and it loads the plugin and produces log output  
from the plugin:  
...  
[2015-02-06 12:23:15,268][INFO][plugins] [Ringmaster]  
loaded [analysis-units, marvel], sites [marvel, head]  
...  
[2015-02-06 12:23:21,235][INFO][units-conversion-plugin] \>\>\>\>\>\>\> On  
module called for units conversion binder processor  
[2015-02-06 12:23:21,243][INFO][units-conversion-plugin] \>\>\>\>\>\>\>\>\>\>\>  
processTokenFilters  
...

However, when I try and access the new filter I get a 400 error response:

Request:

PUT /testunits  
{  
"settings": {  
"analysis": {

```
  "analyzer" : {
      "my_analyzer" : {
        "tokenizer" : "standard",
        "filter" : ["my_filter"]
      }
    },
    "filter" : {
      "my_filter" : {
        "type" : "units"
      }
    }
}

```

}  
}

Result:  
{  
"error": "IndexCreationException[[testunits] failed to create index];  
nested: ElasticsearchIllegalArgumentException[failed to find token filter  
type [units] for [my\_filter]]; nested: NoClassSettingsException[Failed to  
load class setting [type] with value [units]]; nested:  
ClassNotFoundException[org.elasticsearch.index.analysis.units.UnitsTokenFilterFactory];  
",  
"status": 400  
}

Hopefully, I'm just doing something stoopid....

Thanks,  
John H.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3aeeecab-4691-4cbf-a896-bcfbc5a5fa69%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3aeeecab-4691-4cbf-a896-bcfbc5a5fa69%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:34am UTC](https://discuss.elastic.co/t/unable-to-access-a-token-filter-installed-as-a-plugin/22016/2 "2017-07-06T00:34:26Z")

</div>


