ElasticSearch is an amazing product, that i'm trying to master, but have
some queries:
I just switched to version 1.0.0 - so the code below is run against that
version
1. I start with a fresh & clean installation and try to add a mapping:
PUT infopoint/DIVER/_mapping
{
"mapping" : {
"DIVER" : {
"properties" : {
"location" : {
"type" : "geo_point",
"lat_lon": true,
"geohash": true
},
"image" : {"index" : "no"}
}
}
}
}
I fail with a IndexMissingException[[infopoint] missing] message
You get the idea - i want to have the location geo-hashed and i want to
exclude the image from indexing
- so that the image is returned on a query, but matching on the image text
should not return the document
2. Ok, i decide to create a infopoint/DIVER with
PUT infopoint/DIVER/123
{
"name": "Chania Diving",
"nameLocal": "Kαταδυτικό Χανίων",
"image": "http://c.commonstorage.google.com/bla/blah/blah.jpg",
"location" : {
"lat" : 15.5,
"lon" : 15.1
},
"area1": "Crete",
"area1Local": "Κρήτη",
"countryCode": "GR"
}
After adding the first document, then i i can update the mapping.
What i would like to do it set the mapping on */infopoint/ *just once on a
fresh elastic-search and have this mapping across all new /infopoint/
documents
3. When i run a search looking for blah.jpg i get a response
POST infopoint/_search
{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "blah.jpg"
}
}
}
}
}
I though i excluded the "image" from the index
*4. *I would like to associate some tags to my documents. So for example
for the DIVER i would like to add the
translations in Greek, Spanish etc languages... so that i can retrieve
document even if users use a different language than english
As those 'translations' are static, i would like to attach them into the
/infopoint/DIVER/ just once
instead of having to transmit them every single time i index a document
Thanks a lot
Any help or pointers to a book or tutorial will be appreciated
Antonios
--
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/b9408a53-7fbf-45a2-950e-01d9b0edd679%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.