NEST: How can I get the raw JSON that comprises a doc just before it's indexed?


(Rian Stockbower) #1

Basically, I'm trying to get the raw JSON that would be sent to
elasticsearch for indexing, without actually indexing it. Is there any
way to do this? I didn't see anything in the docs or unit tests that would
be useful.

Thanks,
-Rian

--
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/6906320e-9cef-4934-88c1-f6904a9f2a56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Itamar Syn-Hershko) #2

What version are you using? the latest one (v 1.0.0 beta1, a pre-release on
nuget) should have this feature

--

Itamar Syn-Hershko
http://code972.com | @synhershko https://twitter.com/synhershko
Freelance Developer & Consultant
Author of RavenDB in Action http://manning.com/synhershko/

On Thu, May 8, 2014 at 4:58 PM, rianjs rstockbower@gmail.com wrote:

Basically, I'm trying to get the raw JSON that would be sent to
elasticsearch for indexing, without actually indexing it. Is there any
way to do this? I didn't see anything in the docs or unit tests that would
be useful.

Thanks,
-Rian

--
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/6906320e-9cef-4934-88c1-f6904a9f2a56%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/6906320e-9cef-4934-88c1-f6904a9f2a56%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/CAHTr4Zvr51%3DFtz%3DNk49dOA-JxUQs_5qZASHq45utTJx0EepUQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Rian Stockbower) #3

I'm think I'm using 0.12.0. I'll check out the pre-release version. Will it
allow me to get the bulk JSON doc as well? (Because that would be super
sweet!)

Looking at the elasticsearch blog entry about NEST, the relevant change
looks like this
one? https://github.com/elasticsearch/elasticsearch-net/pull/545/files

On Sunday, May 11, 2014 3:58:00 AM UTC-4, Itamar Syn-Hershko wrote:

What version are you using? the latest one (v 1.0.0 beta1, a pre-release
on nuget) should have this feature

--

Itamar Syn-Hershko
http://code972.com | @synhershko https://twitter.com/synhershko
Freelance Developer & Consultant
Author of RavenDB in Action http://manning.com/synhershko/

On Thu, May 8, 2014 at 4:58 PM, rianjs <rstoc...@gmail.com <javascript:>>wrote:

Basically, I'm trying to get the raw JSON that would be sent to
elasticsearch for indexing, without actually indexing it. Is there any
way to do this? I didn't see anything in the docs or unit tests that would
be useful.

Thanks,
-Rian

--
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/6906320e-9cef-4934-88c1-f6904a9f2a56%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/6906320e-9cef-4934-88c1-f6904a9f2a56%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/64d8f22b-a339-40c2-a988-efd45793d84e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Itamar Syn-Hershko) #4

This is effective only when you run with the debugger attached, but yes.
This is effective for all response types.

--

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 12, 2014 at 2:09 AM, rianjs rstockbower@gmail.com wrote:

I'm think I'm using 0.12.0. I'll check out the pre-release version. Will
it allow me to get the bulk JSON doc as well? (Because that would be super
sweet!)

Looking at the elasticsearch blog entry about NEST, the relevant change
looks like this one?
https://github.com/elasticsearch/elasticsearch-net/pull/545/files

On Sunday, May 11, 2014 3:58:00 AM UTC-4, Itamar Syn-Hershko wrote:

What version are you using? the latest one (v 1.0.0 beta1, a pre-release
on nuget) should have this feature

--

Itamar Syn-Hershko
http://code972.com | @synhershko https://twitter.com/synhershko
Freelance Developer & Consultant
Author of RavenDB in Action http://manning.com/synhershko/

On Thu, May 8, 2014 at 4:58 PM, rianjs rstoc...@gmail.com wrote:

Basically, I'm trying to get the raw JSON that would be sent to
elasticsearch for indexing, without actually indexing it. Is there
any way to do this? I didn't see anything in the docs or unit tests that
would be useful.

Thanks,
-Rian

--
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/6906320e-9cef-4934-88c1-f6904a9f2a56%
40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/6906320e-9cef-4934-88c1-f6904a9f2a56%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/64d8f22b-a339-40c2-a988-efd45793d84e%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/64d8f22b-a339-40c2-a988-efd45793d84e%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/CAHTr4Zstj529STP9zYuPhcka5cehcf%2B2LMgkCLiUiswRY9GNhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Rian Stockbower) #5

I opened a feature request for this the other day, but it turns out this
feature exists now, though I think it didn't when I started this thread.
(Hooray for actively-developed libraries!)

http://stackoverflow.com/questions/23703570/is-there-a-way-to-deserialize-elasticsearch-nest-search-query/23704708

-Rian

On Sunday, May 11, 2014 7:17:58 PM UTC-4, Itamar Syn-Hershko wrote:

This is effective only when you run with the debugger attached, but yes.
This is effective for all response types.

--

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 12, 2014 at 2:09 AM, rianjs <rstoc...@gmail.com <javascript:>>wrote:

I'm think I'm using 0.12.0. I'll check out the pre-release version. Will
it allow me to get the bulk JSON doc as well? (Because that would be super
sweet!)

Looking at the elasticsearch blog entry about NEST, the relevant change
looks like this one?
https://github.com/elasticsearch/elasticsearch-net/pull/545/files

On Sunday, May 11, 2014 3:58:00 AM UTC-4, Itamar Syn-Hershko wrote:

What version are you using? the latest one (v 1.0.0 beta1, a pre-release
on nuget) should have this feature

--

Itamar Syn-Hershko
http://code972.com | @synhershko https://twitter.com/synhershko
Freelance Developer & Consultant
Author of RavenDB in Action http://manning.com/synhershko/

On Thu, May 8, 2014 at 4:58 PM, rianjs rstoc...@gmail.com wrote:

Basically, I'm trying to get the raw JSON that would be sent to
elasticsearch for indexing, without actually indexing it. Is there
any way to do this? I didn't see anything in the docs or unit tests that
would be useful.

Thanks,
-Rian

--
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/6906320e-9cef-4934-88c1-f6904a9f2a56%
40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/6906320e-9cef-4934-88c1-f6904a9f2a56%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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/64d8f22b-a339-40c2-a988-efd45793d84e%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/64d8f22b-a339-40c2-a988-efd45793d84e%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/e85e41ab-bf5c-4219-9d41-1ad9fcb6eb99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #6