Put mapping request returning acknowledged false

Since you seem to refuse to send some sort of recreation, I wrote one based
on your steps and it works for me. Please don't respond to this email unless
there is some way that I can recreate this, I can't second guess all the
steps you do. Here is what I ran: gist:481733 · GitHub

-shay.banon

On Sun, Jul 18, 2010 at 6:49 PM, Samuel Doyle samueldoyle@gmail.com wrote:

This is what I do for the batch indexing:
1.) Delete the index if it exists
2.) Create the index
3.) Check and wait till the index is available
4.) Send the PutMappingRequest which results in the NACK

On Sun, Jul 18, 2010 at 1:35 AM, Shay Banon shay.banon@elasticsearch.comwrote:

And you say that with a fresh elasticsearch instance, when you try to put
this mapping, you get the ack=false, or are there certain steps that needs
to be taken in order to reproduce it?

-shay.banon

On Sun, Jul 18, 2010 at 5:58 AM, Samuel Doyle samueldoyle@gmail.comwrote:

Here is the mapping I'm using that always causes the problem

{"sale":{"properties":{"salescode":{"type":"string","boost":1},"sdate":{"type":"date","boost":1,"format":"YYYY-MM-dd
HH:mm:ss.S"},"orgid":{"type":"long","boost":1},"safname":{"type":"string","boost":1},"salname":{"type":"string","index":"not_analyzed","boost":1},"saemail":{"type":"string","boost":1},"saaddr1":{"type":"string","boost":1},"saaddr2":{"type":"string","boost":1},"sacity":{"type":"string","boost":1},"sastateprov":{"type":"string","boost":1},"sapostalcode":{"type":"string","boost":1},"sacountry":{"type":"string","boost":1},"saphone":{"type":"string","boost":1},"bafname":{"type":"string","boost":1},"balname":{"type":"string","boost":1},"baemail":{"type":"string","boost":1},"baaddr1":{"type":"string","boost":1},"baaddr2":{"type":"string","boost":1},"bacity":{"type":"string","boost":1},"bastateprov":{"type":"string","boost":1},"bapostalcode":{"type":"string","boost":1},"bacountry":{"type":"string","boost":1},"baphone":{"type":"string","boost":1},"creditcard":{"type":"string","boost":1},"trxamount":{"type":"double","boost":1},"trxdate":{"type":"date","boost":1,"format":"YYYY-MM-dd
HH:mm:ss.S"},"pgownertype":{"type":"integer","boost":1},"pgownerid":{"type":"integer","boost":1}}}}

On Fri, Jul 16, 2010 at 4:16 AM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

Can you send a simple recreation?

On Fri, Jul 16, 2010 at 5:39 AM, Samuel Doyle samueldoyle@gmail.comwrote:

I should mention this is only one node as well.

On Thu, Jul 15, 2010 at 7:39 PM, Samuel Doyle samueldoyle@gmail.comwrote:

Hi, I still see the problem after update with clean build and deploy.
I had also updated the client jars as well.

On Thu, Jul 15, 2010 at 3:54 PM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

thanks!

On Fri, Jul 16, 2010 at 1:51 AM, Samuel Doyle <samueldoyle@gmail.com

wrote:

Ok, I'll update and give it a try

On Thu, Jul 15, 2010 at 3:49 PM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

Can you verify that it does not happen with the latest fix?

On Fri, Jul 16, 2010 at 1:49 AM, Samuel Doyle <
samueldoyle@gmail.com> wrote:

Yes, it appears the mappings are fine but the ack was false.

On Thu, Jul 15, 2010 at 10:04 AM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

Ok, managed to simulate it, opened an issue:
Put Mapping: When updating existing mappings, the request returns with acknowledged `false` · Issue #262 · elastic/elasticsearch · GitHub(check if this is your case) and pushed a fix for it.

On Thu, Jul 15, 2010 at 7:11 PM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

I am getting back true for my tests, so it might be what you did
before that might cause this? Can you create something simple that recreates
this?

On Thu, Jul 15, 2010 at 1:55 AM, Samuel Doyle <
samueldoyle@gmail.com> wrote:

When sending a PutMappingRequest I used to receive back a true
value for acknowledged.

client.admin().indices().putMapping(new
PutMappingRequest(indexName).source(value)).actionGet().acknowledged

After my last update from master and build this is always
returning false. What could be the issue here?

Thanks