question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing custom class

See original GitHub issue

Trying to make my own analyzer I got this error : The type is set to custom, but can’t be instanciated… because it’s missing. I made something wrong?

/home/workspace/eggs/elasticsearch_dsl-0.0.8-py2.7.egg/elasticsearch_dsl/analysis.pyc in _type_shortcut(cls, name_or_instance, type, **kwargs)
    109         if type is None:
    110             type = 'custom'
--> 111         return cls.get_dsl_class(type)(name_or_instance, **kwargs)
    112 
    113 class Analyzer(AnalysisBase, DslBase):

/home/workspace/eggs/elasticsearch_dsl-0.0.8-py2.7.egg/elasticsearch_dsl/utils.pyc in get_dsl_class(cls, name)
    194             return cls._classes[name]
    195         except KeyError:
--> 196             raise UnknownDslObject('DSL class `%s` does not exist in %s.' % (name, cls._type_name))
    197 
    198     def __init__(self, **params):

UnknownDslObject: DSL class `custom` does not exist in token_filter.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
honzakralcommented, Oct 31, 2015

Thanks! This error is definitely misleading and should be fixed. What is going on, however, is that you are not passing in the filter but just it’s name. There is then no way for the analyzer (autocomplete) to know where to take the autocomplete_filter you refer to. Correct way is to pass the token filter itself, not its name.

0reactions
honzakralcommented, Jan 24, 2016

I am sorry @thavidu, I completely missed your question here. Please see #328 which is exactly the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing custom constructor in Java class - Stack Overflow
the given Node class doesn't have any constructor (custom) but in the solution, they are making an object of it, like if it...
Read more >
Missing number, treated as zero. (custom class) - TeX
(custom class) ... I am trying to write a class for science bowl question packets. ... /testing.tex:9: Missing number, treated as zero.
Read more >
Unable to Load Assets After Upgrade: Missing Custom Class ...
When attempting to load an asset, the Contributor UI displays "ContentServer Error" in Form mode. Additionally, if searching for assets then ...
Read more >
MissingClass: Missing registered class - Google Samples
This check helps uncover typos in registration names, or attempts to rename or move classes without updating the XML references properly. Example. Here...
Read more >
typestack/class-validator: Decorator-based property ... - GitHub
It's possible to pass a custom object to decorators which will be accessible on the ValidationError instance of the property if validation failed....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found