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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 marshy1001@gmail.comwrote:
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9%40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
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.
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 <marsh...@gmail.com<javascript:>
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9%40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8c9a526a-6153-4291-a94c-35ea0d14240a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 marshy1001@gmail.comwrote:
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 marsh...@gmail.comwrote:
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/293cc2c5-2f23-4698-85b7-309fb15de9b9%
40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8c9a526a-6153-4291-a94c-35ea0d14240a%40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
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.
Ah ok, so if i undesratd correctly, there is no way to define a custom
analyser in code and use that to to index a poco?
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/69b6c529-3e55-472e-92e0-79c4c2f01ce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are 2 ways to define a custom analyzer - one is via configuration
Elasticsearch Platform — Find real-time answers at scale | Elastic,
and the other is via code.
If your custom analyzer is written in code, it will be Java code that has
to be deployed to ES as a plugin while your code is a client written in
.NET, so no
Otherwise, you can define the analyzer via index settings from client code
as well
--
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 8:19 PM, Marcio Rodrigues marshy1001@gmail.comwrote:
Ah ok, so if i undesratd correctly, there is no way to define a custom
analyser in code and use that to to index a poco?
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/69b6c529-3e55-472e-92e0-79c4c2f01ce4%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/69b6c529-3e55-472e-92e0-79c4c2f01ce4%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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zu7wqg9unpmjM%2BHrcY8OPUPGeXXQ84mzCFCVpp3W%3DkYmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, I know the other ways of doing it, I was more specifically
interested in doing it on a field within a Poco via the NEST api.
On Monday, May 5, 2014 6:25:40 PM UTC+1, Itamar Syn-Hershko wrote:
There are 2 ways to define a custom analyzer - one is via configuration
Elasticsearch Platform — Find real-time answers at scale | Elastic, and the other is via code.
If your custom analyzer is written in code, it will be Java code that has
to be deployed to ES as a plugin while your code is a client written in
.NET, so no
Otherwise, you can define the analyzer via index settings from client code
as well
--
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 8:19 PM, Marcio Rodrigues <marsh...@gmail.com<javascript:>
wrote:
Ah ok, so if i undesratd correctly, there is no way to define a custom
analyser in code and use that to to index a poco?
--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/69b6c529-3e55-472e-92e0-79c4c2f01ce4%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/69b6c529-3e55-472e-92e0-79c4c2f01ce4%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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7f19491d-aad3-45be-8ade-0518f2695ef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.