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/CAHTr4ZuWBL7xB-HG2xOR-59ufXLXAWz7C9-JL-%2BZBJiD5mWh2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to