back to listing index

ElasticSearch Users - Big mapping example?

[web search]
Original source (elasticsearch-users.115913.n3.nabble.com)
Tags: elasticsearch index-creation PUT examples settings
Clipped on: 2012-11-01

Big mapping example?

Image (Asset 1/9) alt=
4 posts
Hi, is there a lagre(ish) example of an indexmapping somewhere in the ES docs? I'm just starting to dip my toes into ES now.

I'm asking because it would be great to have a document like that to begin using ES - just like Solr has a large commented solrconfig.xml and schema.xml file that may be used as a startingpoint for setting it up.

Regards,
Tarjei


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
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 :)
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 :)
Reply | Threaded | More Image (Asset 6/9) alt=
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