Mapping is the definition of how ES will index your docs.
If you don't give one, ES auto guess the mapping with default settings (english language analyzer for example).
You define mapping once before sending your first doc.
One advice. Send your first doc and then get its mapping: Elasticsearch Platform — Find real-time answers at scale | Elastic
Then, delete your type: Elasticsearch Platform — Find real-time answers at scale | Elastic
Modify the mapping you get just before and adapt it to your needs.
Then, put it in ES: Elasticsearch Platform — Find real-time answers at scale | Elastic
If you need to define your own analyzer, you will have to define it AT FIRST, when creating your index: Elasticsearch Platform — Find real-time answers at scale | Elastic
See also: Elasticsearch Platform — Find real-time answers at scale | Elastic
To test it, I recommand the Analyze API: Elasticsearch Platform — Find real-time answers at scale | Elastic
BTW, with which language are you going to use ES?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 31 oct. 2012 à 16:34, Anibal Ardid anibalardid@gmail.com a écrit :
point 1 - PERFECT !
the other ... synonym ...
i don't understand how it works ... and the settings of analyzers where go...
i need to put the synonym with _mapping in every query ?
sorry, but for me , the documentation is not very clear
2012/10/31 David Pilato david@pilato.fr
Search in all is Elasticsearch Platform — Find real-time answers at scale | Elastic
To use synonyms, you need to define a mapping for your fields :
Synonyms are used in an analyzer : Elasticsearch Platform — Find real-time answers at scale | Elastic
It's a token filter that replace one word to another at index time (and query time): Elasticsearch Platform — Find real-time answers at scale | Elastic
Does it help?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 31 oct. 2012 à 15:55, Anibal Ardid anibalardid@gmail.com a écrit :
Hi ! For example, I run elasticsearch and http://localhost:9200 works fine.
I can put data and get data from this example:
http://www.elasticsearchtutorial.com/elasticsearch-in-5-minutes.html
but, for example i dont understand how configure the "settings" , for example to use synonyms ...
how search text in all "columns" ...
best regards !
2012/10/31 David Pilato david@pilato.fr
I think that the elasticsearch.org front page explains all the basics you need to know to start.
What is your problem?
Starting a node?
Indexing a doc?
Searching ?
What language do you plan to use (java, php, ruby,...) ?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 31 oct. 2012 à 14:54, Anibal Ardid anibalardid@gmail.com a écrit :
Hi ! i'm begginer with big data search engines... I only have experience with mysql.
But in my work we need to do new project, and use big data database.
We need:
- full text search
- synonyms
- related search
- fast and scalable
So , I found elasticsearch ... but I don't know how start ... I've download the package, but in the guides I didn't found how start to configure, load data, etc.
best regards !
--
--
--
--
--