How to index a .JSON file

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly
to bulk load in the future. I'm not sure how to do this currently. The
.json would be generated from a SQL Server query and formatted as JSON by
another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST
'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello!

You can find more information about indexing data here: http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json

{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:

{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:

Hello!

You can find more information about indexing data here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

*--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST '
http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello!

In order to send two documents in the same JSON file you need to use ElasticSearch Bulk API. You can find more information about it here: http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Thanks. I've tried adding the @ and that works for a very simple JSON document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this, however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here: http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks.

I just tried this a couple times (setting the "_id" fields to unused
numbers, however only the first record gets added. It skips the second
record. Any idea why?

This is the exact file I used and only the first record (M05) was loaded
into Elasticsearch:

{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"14"}}
{"lane":"M04","routes":170}

On Wednesday, April 10, 2013 5:49:56 PM UTC-4, Rafał Kuć wrote:

Hello!

In order to send two documents in the same JSON file you need to use
Elasticsearch Bulk API. You can find more information about it here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can
send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary
@bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST '
http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello!

Notice, that the last line of data must end with the new line character. I assume that is the reason for the behavior you are seeing.

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Thanks.

I just tried this a couple times (setting the "_id" fields to unused numbers, however only the first record gets added. It skips the second record. Any idea why?

This is the exact file I used and only the first record (M05) was loaded into Elasticsearch:

{"index":{"_index":"test","_type":"test","_id":"13"}}

{"lane":"M05","routes":160}

{"index":{"_index":"test","_type":"test","_id":"14"}}

{"lane":"M04","routes":170}

On Wednesday, April 10, 2013 5:49:56 PM UTC-4, Rafał Kuć wrote:

Hello!

In order to send two documents in the same JSON file you need to use ElasticSearch Bulk API. You can find more information about it here: http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}

{"lane":"M05","routes":160}

{"index":{"_index":"test","_type":"test","_id":"2"}}

{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Thanks. I've tried adding the @ and that works for a very simple JSON document. This is the one I used:

{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this, however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:

Hello!

You can find more information about indexing data here: http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json

{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

Thank you Rafal. That worked. In case anyone else wants to know, I had to
include the \n on the line after the last line of data:

{"index":{"_index":"test","_type":"test","_id":"11"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"12"}}
{"lane":"M04","routes":170}
{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M06","routes":190}
\n

On Wednesday, April 10, 2013 6:06:49 PM UTC-4, Rafał Kuć wrote:

Hello!

Notice, that the last line of data must end with the new line character. I
assume that is the reason for the behavior you are seeing.

*--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks.

I just tried this a couple times (setting the "_id" fields to unused
numbers, however only the first record gets added. It skips the second
record. Any idea why?

This is the exact file I used and only the first record (M05) was loaded
into Elasticsearch:

{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"14"}}
{"lane":"M04","routes":170}

On Wednesday, April 10, 2013 5:49:56 PM UTC-4, Rafał Kuć wrote:
Hello!

In order to send two documents in the same JSON file you need to use
Elasticsearch Bulk API. You can find more information about it here:
http://www.elasticsearch.org/http://www.elasticsearch.org/guide/reference/api/bulk/
guide/reference/api/bulk/http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can
send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_http://jfblouvmlxecs01:9200/_bulk
bulk http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here:
http://www.elasticsearch.org/http://www.elasticsearch.org/guide/reference/api/index_/
guide/reference/api/index_/http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/http://jfblouvmlxecs01:9200/test/test/1
test/test/1 http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/http://jfblouvmlxecs01:9200/test/test/1
test/test/1 http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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.
For more options, visit https://groups.google.com/https://groups.google.com/groups/opt_out
groups/opt_out https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/https://groups.google.com/groups/opt_out
groups/opt_out https://groups.google.com/groups/opt_out.

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Also, is there a way to eliminate the need for the index lines in the JSON?
The data that I will be entering into Elasticsearch is going to be many
thousands of rows and formatting each of them to display the index line
will require another application to format each line.

Is there a way to specify a file like this?

{"lane":"M05","routes":160}
{"lane":"M04","routes":170}
{"lane":"M06","routes":190}

I saw in the bulk examplehttp://www.elasticsearch.org/guide/reference/api/bulk/ that
"cat requests" is used for the index line, though I'm not sure what that
does or how to use it.

On Wednesday, April 10, 2013 6:22:22 PM UTC-4, OffensivelyBad wrote:

Thank you Rafal. That worked. In case anyone else wants to know, I had
to include the \n on the line after the last line of data:

{"index":{"_index":"test","_type":"test","_id":"11"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"12"}}
{"lane":"M04","routes":170}
{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M06","routes":190}
\n

On Wednesday, April 10, 2013 6:06:49 PM UTC-4, Rafał Kuć wrote:

Hello!

Notice, that the last line of data must end with the new line character.
I assume that is the reason for the behavior you are seeing.

*--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks.

I just tried this a couple times (setting the "_id" fields to unused
numbers, however only the first record gets added. It skips the second
record. Any idea why?

This is the exact file I used and only the first record (M05) was loaded
into Elasticsearch:

{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"14"}}
{"lane":"M04","routes":170}

On Wednesday, April 10, 2013 5:49:56 PM UTC-4, Rafał Kuć wrote:
Hello!

In order to send two documents in the same JSON file you need to use
Elasticsearch Bulk API. You can find more information about it here:
http://www.elasticsearch.org/http://www.elasticsearch.org/guide/reference/api/bulk/
guide/reference/api/bulk/http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can
send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_http://jfblouvmlxecs01:9200/_bulk
bulk http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here:
http://www.elasticsearch.org/http://www.elasticsearch.org/guide/reference/api/index_/
guide/reference/api/index_/http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/http://jfblouvmlxecs01:9200/test/test/1
test/test/1 http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/http://jfblouvmlxecs01:9200/test/test/1
test/test/1 http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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.
For more options, visit https://groups.google.com/https://groups.google.com/groups/opt_out
groups/opt_out https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/https://groups.google.com/groups/opt_out
groups/opt_out https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

You can also at FSRiver. GitHub - dadoonet/fscrawler: Elasticsearch File System Crawler (FS Crawler)
Latest version can now index JSON files in a directory.

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 11 avr. 2013 à 00:27, OffensivelyBad shawnroller10@gmail.com a écrit :

Also, is there a way to eliminate the need for the index lines in the JSON? The data that I will be entering into Elasticsearch is going to be many thousands of rows and formatting each of them to display the index line will require another application to format each line.

Is there a way to specify a file like this?

{"lane":"M05","routes":160}
{"lane":"M04","routes":170}
{"lane":"M06","routes":190}

I saw in the bulk example that "cat requests" is used for the index line, though I'm not sure what that does or how to use it.

On Wednesday, April 10, 2013 6:22:22 PM UTC-4, OffensivelyBad wrote:

Thank you Rafal. That worked. In case anyone else wants to know, I had to include the \n on the line after the last line of data:

{"index":{"_index":"test","_type":"test","_id":"11"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"12"}}
{"lane":"M04","routes":170}
{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M06","routes":190}
\n

On Wednesday, April 10, 2013 6:06:49 PM UTC-4, Rafał Kuć wrote:

Hello!

Notice, that the last line of data must end with the new line character. I assume that is the reason for the behavior you are seeing.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Elasticsearch

Thanks.

I just tried this a couple times (setting the "_id" fields to unused numbers, however only the first record gets added. It skips the second record. Any idea why?

This is the exact file I used and only the first record (M05) was loaded into Elasticsearch:

{"index":{"_index":"test","_type":"test","_id":"13"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"14"}}
{"lane":"M04","routes":170}

On Wednesday, April 10, 2013 5:49:56 PM UTC-4, Rafał Kuć wrote:
Hello!

In order to send two documents in the same JSON file you need to use Elasticsearch Bulk API. You can find more information about it here: Elasticsearch Platform — Find real-time answers at scale | Elastic

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this, however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here: Elasticsearch Platform — Find real-time answers at scale | Elastic

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Rafal,
what I do is
{"index":{"_index":"test","_type":"keywords","_id":"1"}}
{"keywords":"red"}

and i post as:
curl -s -XPOST 'http://192.168.213.158:9200/_bulk' --data-binary
@keywords.json
Get an error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no
requests added;]","status":500}

any idea?

在 2013年4月10日星期三UTC+2下午11时49分56秒,Rafał Kuć写道:

Hello!

In order to send two documents in the same JSON file you need to use
Elasticsearch Bulk API. You can find more information about it here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can
send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary
@bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST '
http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Did you add a return after the last body?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 21 novembre 2013 at 15:14:15, cml (funny1990525@gmail.com) a écrit:

Hi Rafal,
what I do is
{"index":{"_index":"test","_type":"keywords","_id":"1"}}
{"keywords":"red"}

and i post as:
curl -s -XPOST 'http://192.168.213.158:9200/_bulk' --data-binary @keywords.json
Get an error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":500}

any idea?

在 2013年4月10日星期三UTC+2下午11时49分56秒,Rafał Kuć写道:
Hello!

In order to send two documents in the same JSON file you need to use ElasticSearch Bulk API. You can find more information about it here: http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Thanks. I've tried adding the @ and that works for a very simple JSON document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this, however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here: http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi david,

My json file contains data like this
{ "field1" : "value1" }
{ "field1" : "value2" }
{ "field1" : "value3" }

Is it possible to index with fsriver?.

My river/index creation as below,

curl -XPUT 'localhost:9200/_river/security/_meta' -d '{
"type":"fs",
"fs": {
"url": "/Projects/elasticsearch-1.0.1/JSON/",
"update_rate": 1000,
"json_support" : "true"
},

"index":{
"index":"security",
"type":"logs",
"bulk_size":50
}
}

I am keep getting error saying that error 'Error while indexing content
from /Projects/elasticsearch-1.0.1/JSON/'

Could you please help me out?
Thanks
Prasanth.R

On Thursday, November 21, 2013 11:01:40 PM UTC+5:30, David Pilato wrote:

Did you add a return after the last body?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 21 novembre 2013 at 15:14:15, cml (funny1...@gmail.com <javascript:>)
a écrit:

Hi Rafal,
what I do is
{"index":{"_index":"test","_type":"keywords","_id":"1"}}
{"keywords":"red"}

and i post as:
curl -s -XPOST 'http://192.168.213.158:9200/_bulk' --data-binary
@keywords.json
Get an error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no
requests added;]","status":500}

any idea?

在 2013年4月10日星期三UTC+2下午11时49分56秒,Rafał Kuć写道:

Hello!

In order to send two documents in the same JSON file you need to use
Elasticsearch Bulk API. You can find more information about it here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can
send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary
@bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Thanks. I've tried adding the @ and that works for a very simple JSON
document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this,
however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

One thing I've noticed in your command is that you lack the @ character
before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

I'm completely new to Elasticsearch and I've been importing data to
Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and
possibly to bulk load in the future. I'm not sure how to do this
currently. The .json would be generated from a SQL Server query and
formatted as JSON by another layer, and then placed in a folder on the
server.

I've attempted to run this code to index the JSON, however I get an error
message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST '
http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from
(offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111,
110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind
I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/6b1e4ba4-8734-451d-9da5-83b52cafd5f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No. They are not valid json files.
You need to provide one json file per document.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 9 avril 2014 à 14:36:31, Prasanth R (prasanth.sunrise@gmail.com) a écrit:

Hi david,

My json file contains data like this
{ "field1" : "value1" }
{ "field1" : "value2" }
{ "field1" : "value3" }

Is it possible to index with fsriver?.

My river/index creation as below,

curl -XPUT 'localhost:9200/_river/security/_meta' -d '{
"type":"fs",
"fs": {
"url": "/Projects/elasticsearch-1.0.1/JSON/",
"update_rate": 1000,
"json_support" : "true"
},

"index":{
"index":"security",
"type":"logs",
"bulk_size":50
}
}

I am keep getting error saying that error 'Error while indexing content from /Projects/elasticsearch-1.0.1/JSON/'

Could you please help me out?
Thanks
Prasanth.R

On Thursday, November 21, 2013 11:01:40 PM UTC+5:30, David Pilato wrote:
Did you add a return after the last body?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 21 novembre 2013 at 15:14:15, cml (funny1...@gmail.com) a écrit:

Hi Rafal,
what I do is
{"index":{"_index":"test","_type":"keywords","_id":"1"}}
{"keywords":"red"}

and i post as:
curl -s -XPOST 'http://192.168.213.158:9200/_bulk' --data-binary @keywords.json
Get an error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":500}

any idea?

在 2013年4月10日星期三UTC+2下午11时49分56秒,Rafał Kuć写道:
Hello!

In order to send two documents in the same JSON file you need to use ElasticSearch Bulk API. You can find more information about it here: http://www.elasticsearch.org/guide/reference/api/bulk/

Basically your document would have to look like this:

{"index":{"_index":"test","_type":"test","_id":"1"}}
{"lane":"M05","routes":160}
{"index":{"_index":"test","_type":"test","_id":"2"}}
{"lane":"M04","routes":170}

If the above content would be stored in a file called bulk.json, you can send it using the following command:

curl -s -XPOST 'http://jfblouvmlxecs01:9200/_bulk' --data-binary @bulk.json

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Thanks. I've tried adding the @ and that works for a very simple JSON document. This is the one I used:
{"lane":"M05","routes":160}

I also tried adding this JSON doc with 2 rows (2 records) like this, however it put both records under the same id:

{"lane":"M05","routes":160},{"lane":"M04","routes":170}

How can I do this when I have multiple records in the same .json file?

On Wednesday, April 10, 2013 5:03:43 PM UTC-4, Rafał Kuć wrote:
Hello!

You can find more information about indexing data here: http://www.elasticsearch.org/guide/reference/api/index_/

One thing I've noticed in your command is that you lack the @ character before the file name. Your command should look like this:

curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d @lane.json

instead of the one you've pasted.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

I'm completely new to Elasticsearch and I've been importing data to Elasticsearch up to this point by manually entering the JSON.

I'd like to begin loading in .json files to make things faster and possibly to bulk load in the future. I'm not sure how to do this currently. The .json would be generated from a SQL Server query and formatted as JSON by another layer, and then placed in a folder on the server.

I've attempted to run this code to index the JSON, however I get an error message:

[root@JFBLOUVMLXECS01 ~]# curl -XPOST 'http://jfblouvmlxecs01:9200/test/test/1' -d lane.json
{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=9): [108, 97, 110, 101, 46, 106, 115, 111, 110]]","status":400}[root@JFBLOUVMLXECS01 ~]#

Any help you can provide would be much appreciated. Please keep in mind I'm a total noob with this.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

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/6b1e4ba4-8734-451d-9da5-83b52cafd5f2%40googlegroups.com.
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/etPan.53456009.2901d82.164d%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.