missing custom class
See original GitHub issueTrying 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:
- Created 8 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.I am sorry @thavidu, I completely missed your question here. Please see #328 which is exactly the same issue.