join the nosql movement client indices put_mapping(index=indexnamedoc_type=doctype,body=diseasemapping within fulltext you now have an extra parameterfields here you can specify all the different isotopes of fulltext you have only oneit goes by the name shingles and will analyze the fulltext with your new my_shingle_analyzer you still have access to your original fulltextand you didn' specify an analyzer for thisso the standard one will be used as before you can access the new one by giving the property name followed by its field namefulltext shingles all you need to do now is go through the previous steps and index the data using the wikipedia apias shown in the following listing listing reindexing wikipedia disease explanations with new doctype mapping dl wikipedia page("lists_of_diseases"diseaselistarray [for link in dl links[ : ]trydiseaselistarray append(wikipedia page(link)except exception,eprint str(echecklist [[" "," "," "," "," "," "," "," "," "," "][" "],[" "],[" "],[" "],[" "],[" "],[" "][" "],[" "],[" "],[" "],[" "],[" "],[" "][" "],[" "],[" "],[" "],[" "],[" "],[" "][" "],[" "],[" "],[" "],[" "]loop through disease lists the checklist is an array containing allowed "first characters if disease doesn' complyyou skip it for diseaselistnumberdiseaselist in enumerate(diseaselistarray)for disease in diseaselist links#loop through lists of links for every disease list tryif disease[ in checklist[diseaselistnumberfirst check if it' and disease[ : !="list" diseasethen currentpage wikipedia page(diseaseindex it client index(index=indexnamedoc_type=doctype,id diseasebody={"name"disease"title":currentpage title "fulltext":currentpage content}except exception,eprint str(ethere' nothing new hereonly this time you'll index doc_type diseases instead of diseases when this is complete you can again move forward to step data explorationand check the results