Jay Taylor's notes
back to listing indexElasticSearch Users - Big mapping example?
[web search]
Original source (elasticsearch-users.115913.n3.nabble.com)
Clipped on: 2012-11-01
Big mapping example?
12 posts
Yes, lots of examples (especially not the standard :) would be cool!
Maybe it can help you, here are some examples:
https://gist.github.com/879883
https://gist.github.com/851600
https://gist.github.com/853994
https://gist.github.com/1051213
http://www.elasticsearch.org/guide/reference/mapping/core-types.html
http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html
http://www.elasticsearch.org/blog/2010/02/12/yourdatayoursearch.html
Maybe it can help you, here are some examples:
https://gist.github.com/879883
https://gist.github.com/851600
https://gist.github.com/853994
https://gist.github.com/1051213
http://www.elasticsearch.org/guide/reference/mapping/core-types.html
http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html
http://www.elasticsearch.org/blog/2010/02/12/yourdatayoursearch.html
4 posts
Great!
Thanks.
As I understand it, when you index a document in ES you can either define a fields properties (in the mapping) when creating the index, but also when you index the document, am I correct?
What happens if the two field definitions conflict?
Regards,
Tarjei
Thanks.
As I understand it, when you index a document in ES you can either define a fields properties (in the mapping) when creating the index, but also when you index the document, am I correct?
What happens if the two field definitions conflict?
Regards,
Tarjei
12 posts
On the first your question.
1. You define the settings of the index (analyzers, filters,
tokenizers)
2. You define the mappings. Here you can specify many options, field
name, field type, use an index or not, what fields to use your
analyzers (index_analyzer, search_analyzer), see the documentation
"Mapping -> Types -> core".
3. Put your data, example:
{
"tweet" {
"user" : "kimchy"
"message" : "This is a tweet!",
"postDate" : "2009-11-15T14:12:12",
"retweets" : 4,
}
}
The search should work :)
On the second your question I don't know, I use ElasticSearch only the
third day :)
1. You define the settings of the index (analyzers, filters,
tokenizers)
2. You define the mappings. Here you can specify many options, field
name, field type, use an index or not, what fields to use your
analyzers (index_analyzer, search_analyzer), see the documentation
"Mapping -> Types -> core".
3. Put your data, example:
{
"tweet" {
"user" : "kimchy"
"message" : "This is a tweet!",
"postDate" : "2009-11-15T14:12:12",
"retweets" : 4,
}
}
The search should work :)
On the second your question I don't know, I use ElasticSearch only the
third day :)
2 posts
I am somehow I am getting these emails accidentally. Please delete me from this conversation. Thanks
Sent via BlackBerry by AT&T
-----Original Message-----
From: Vladimir Shkurin <[hidden email]>
Sender: [hidden email]
Date: Wed, 27 Jul 2011 07:03:22
To: elasticsearch<[hidden email]>
Reply-To: [hidden email]
Subject: Re: Svar: Re: Big mapping example?
On the first your question.
1. You define the settings of the index (analyzers, filters,
tokenizers)
2. You define the mappings. Here you can specify many options, field
name, field type, use an index or not, what fields to use your
analyzers (index_analyzer, search_analyzer), see the documentation
"Mapping -> Types -> core".
3. Put your data, example:
{
"tweet" {
"user" : "kimchy"
"message" : "This is a tweet!",
"postDate" : "2009-11-15T14:12:12",
"retweets" : 4,
}
}
The search should work :)
On the second your question I don't know, I use ElasticSearch only the
third day :)
Sent via BlackBerry by AT&T
-----Original Message-----
From: Vladimir Shkurin <[hidden email]>
Sender: [hidden email]
Date: Wed, 27 Jul 2011 07:03:22
To: elasticsearch<[hidden email]>
Reply-To: [hidden email]
Subject: Re: Svar: Re: Big mapping example?
On the first your question.
1. You define the settings of the index (analyzers, filters,
tokenizers)
2. You define the mappings. Here you can specify many options, field
name, field type, use an index or not, what fields to use your
analyzers (index_analyzer, search_analyzer), see the documentation
"Mapping -> Types -> core".
3. Put your data, example:
{
"tweet" {
"user" : "kimchy"
"message" : "This is a tweet!",
"postDate" : "2009-11-15T14:12:12",
"retweets" : 4,
}
}
The search should work :)
On the second your question I don't know, I use ElasticSearch only the
third day :)
Reply |
Threaded
|
More
On Wed, Jul 27, 2011 at 4:01 PM, Tarjei Huse <[hidden email]> wrote:
Great!
Thanks.
As I understand it, when you index a document in ES you can either define a fields properties (in the mapping) when creating the index, but also when you index the document, am I correct?
What happens if the two field definitions conflict?
Regards,
Tarjei
«
Return to ElasticSearch Users
|
908 views
Powered by Nabble | See how NAML generates this page |