It would have to be defined on ES, the analyzer name has to be the one that ES recognizes (as the plugin defines it)
-- Itamar Syn-Hershko http://code972.com | @synhershko <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/> On Mon, May 5, 2014 at 7:50 PM, Marcio Rodrigues <[email protected]>wrote: > Thanks Itamar > > Would "my_analyzer" in this case be an analyzer i defined in code myself > or would it have to have been already created in ES? > > > > > On Monday, May 5, 2014 5:44:18 PM UTC+1, Itamar Syn-Hershko wrote: > >> This should work: >> >> [ElasticProperty(Analyzer = "my_analyzer")] >> public string Content { get; set;} >> >> You can also specify Index/SearchAnalyzer this way (for fine-grained >> control) >> >> -- >> >> Itamar Syn-Hershko >> http://code972.com | @synhershko <https://twitter.com/synhershko> >> Freelance Developer & Consultant >> Author of RavenDB in Action <http://manning.com/synhershko/> >> >> >> On Mon, May 5, 2014 at 4:18 PM, Marcio Rodrigues <[email protected]>wrote: >> >>> Hi >>> >>> Hoping there are some nest users here who could help me out. >>> >>> I am trying to figure out how to specify cutom field analyzers on a Poco >>> class , so that when it get's indexed automatically via Nest the fields >>> will be appropriately anlyzed. >>> >>> >>> But I can't seem to find a way to specify a custom Analyzer for a field >>> in a Poco ( have searched the documentation as well and not found any help) >>> Is this possible , or do I have to do the mappings manually before? >>> >>> -- >>> 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 [email protected]. >>> >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9% >>> 40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/8c9a526a-6153-4291-a94c-35ea0d14240a%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/8c9a526a-6153-4291-a94c-35ea0d14240a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZtD89TDMhPovRLobbPduK4iNYzbvHQUbMxOQrsjLYHBhA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
