Skip to content

Instantly share code, notes, and snippets.

View vhyza's full-sized avatar

Vojtěch Hýža vhyza

View GitHub Profile
@vhyza
vhyza / elasticsearch_mapping.sh
Created January 25, 2011 18:04
searching in multiple languages using different analyzers
# Setup
curl -s -X DELETE 'http://localhost:9200/news_cs/'
curl -s -X DELETE 'http://localhost:9200/news_en/'
# Create Czech and English indices (databases)
curl -s -X PUT 'http://localhost:9200/news_cs/'
curl -s -X PUT 'http://localhost:9200/news_en/'
# Create mapping for Czech documents
curl -s -X PUT 'http://localhost:9200/news_cs/_mapping' -d '