Skip to content

Instantly share code, notes, and snippets.

@octplane
Created November 28, 2011 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octplane/1400435 to your computer and use it in GitHub Desktop.
Save octplane/1400435 to your computer and use it in GitHub Desktop.
Mapping table
mapper.mappingSource()
{"users":{"_all":{"analyzer":"fuzzy"},"_source":{"enabled":false},"properties":{"album_names":{"type":"string","index_name":"album_name","boost":0.8,"include_in_all":true},"created_at":{"type":"date","store":"yes","format":"dateOptionalTime","include_in_all":false},"description":{"type":"string","boost":0.5,"include_in_all":true},"dversion":{"type":"integer"},"features":{"type":"string","include_in_all":false},"firstname":{"type":"string","boost":0.8,"store":"yes","include_in_all":true},"furtive":{"type":"boolean"},"id":{"type":"string","index":"not_analyzed","store":"yes","include_in_all":false},"img_data":{"type":"binary"},"img_url":{"type":"string","index":"no","store":"yes","include_in_all":false},"lastname":{"type":"multi_field","fields":{"lastname":{"type":"string","boost":0.8,"store":"yes","include_in_all":true},"alphaSort":{"type":"string","index":"not_analyzed","store":"yes","include_in_all":false}}},"location":{"type":"string","store":"yes","include_in_all":true},"name":{"type":"multi_field","fields":{"name":{"type":"string","boost":2.1,"store":"yes","omit_term_freq_and_positions":true,"include_in_all":true},"alphaSort":{"type":"string","analyzer":"alphasort","omit_term_freq_and_positions":true,"include_in_all":false},"fuzzy":{"type":"string","analyzer":"fuzzy","omit_term_freq_and_positions":true,"include_in_all":false},"autocomplete":{"type":"string","index_analyzer":"ngram","search_analyzer":"auto_complete_search_analyser","include_in_all":false}}},"rating":{"type":"double","store":"yes","include_in_all":false},"updated_at":{"type":"date","store":"yes","format":"dateOptionalTime","include_in_all":false}}}}
indexMetaData.mappings().get(type).source())
(type = users)
{"users":{"_all":{"analyzer":"fuzzy"},"_source":{"enabled":false},"properties":{"album_names":{"type":"string","index_name":"album_name","boost":0.8,"include_in_all":true},"created_at":{"type":"date","store":"yes","format":"dateOptionalTime","include_in_all":false},"description":{"type":"string","boost":0.5,"include_in_all":true},"dversion":{"type":"integer"},"features":{"type":"string","include_in_all":false},"firstname":{"type":"string","boost":0.8,"store":"yes","include_in_all":true},"furtive":{"type":"boolean"},"id":{"type":"string","index":"not_analyzed","store":"yes","include_in_all":false},"img_data":{"type":"binary"},"img_url":{"type":"string","index":"no","store":"yes","include_in_all":false},"lastname":{"type":"multi_field","fields":{"lastname":{"type":"string","boost":0.8,"store":"yes","include_in_all":true},"alphaSort":{"type":"string","index":"not_analyzed","store":"yes","include_in_all":false}}},"location":{"type":"string","store":"yes","include_in_all":true},"name":{"type":"multi_field","fields":{"name":{"type":"string","boost":2.1,"store":"yes","omit_term_freq_and_positions":true,"include_in_all":true},"fuzzy":{"type":"string","analyzer":"fuzzy","omit_term_freq_and_positions":true,"include_in_all":false},"alphaSort":{"type":"string","analyzer":"alphasort","omit_term_freq_and_positions":true,"include_in_all":false},"autocomplete":{"type":"string","index_analyzer":"ngram","search_analyzer":"auto_complete_search_analyser","include_in_all":false}}},"rating":{"type":"double","store":"yes","include_in_all":false},"updated_at":{"type":"date","store":"yes","format":"dateOptionalTime","include_in_all":false}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment