Examples

Index API Examples

Creating an index without any data

POST http://localhost:9800/indices HTTP/1.1
{"indexName":"9c8ecbbdc3924540a1366facdb37b096","fields":[],"predefinedQueries":[],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":true,"autoCommit":true,"directoryType":1,"defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":true,"indexVersion":1,"allowReads":true,"allowWrites":true},"active":true}

Response

HTTP/1.1 201
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}

Creating an index with two fields firstname and lastname

POST http://localhost:9800/indices HTTP/1.1
{"indexName":"40e48c008c2146aabdd45441009bdd2d","fields":[{"allowSort":false,"fieldName":"firstname","fieldType":4,"indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":1},{"allowSort":false,"fieldName":"lastname","fieldType":4,"indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":1}],"predefinedQueries":[],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":true,"autoCommit":true,"directoryType":1,"defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":true,"indexVersion":1,"allowReads":true,"allowWrites":true},"active":true}

Response

HTTP/1.1 201
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}

Duplicate indices cannot be created

POST http://localhost:9800/indices HTTP/1.1
{"indexName":"70fd6fca38174b3b9d8ec1343957fd8c","fields":[{"allowSort":false,"fieldName":"name","fieldType":4,"indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":1}],"predefinedQueries":[],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":false,"autoCommit":false,"directoryType":1,"defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":false,"indexVersion":1,"allowReads":true,"allowWrites":true},"active":true}

Response

HTTP/1.1 409
Content-Type : application/json
Content-Length : 207
{"data":false,"error":{"properties":[{"key":"indexName","value":"70fd6fca38174b3b9d8ec1343957fd8c"}],"message":"Index '70fd6fca38174b3b9d8ec1343957fd8c' already exists","operationCode":"IndexAlreadyExists"}}

Getting all available indices

GET http://localhost:9800/indices HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 5526
{"data":[{"indexName":"contact","fields":[{"allowSort":false,"fieldName":"firstname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"lastname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"email","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"country","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"ipaddress","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"cvv2","fieldType":"Int","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"description","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"fullname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"}],"predefinedQueries":[],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":false,"autoCommit":false,"directoryType":"Ram","defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":false,"indexVersion":"FlexSearch_1B","allowReads":true,"allowWrites":true},"active":true},{"indexName":"country","fields":[{"allowSort":false,"fieldName":"countryname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"exports","fieldType":"Long","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"imports","fieldType":"Text","indexAnalyzer":"striptonumbersanalyzer","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"independence","fieldType":"Date","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"militaryexpenditure","fieldType":"Double","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"netmigration","fieldType":"Double","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"area","fieldType":"Int","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"internetusers","fieldType":"Long","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"labourforce","fieldType":"Long","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"population","fieldType":"Long","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"agriproducts","fieldType":"Text","indexAnalyzer":"foodsynonymsanalyzer","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"areacomparative","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"background","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"capital","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"climate","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"economy","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"governmenttype","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"memberof","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"countrycode","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"nationality","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"coordinates","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"}],"predefinedQueries":[{"queryName":"agriSearch","columns":["countryname","agriproducts"],"count":10,"highlights":{"fragmentsToReturn":1,"highlightedFields":["agriproducts","countryname"],"postTag":"</b>","preTag":"<b>"},"indexName":"country","orderBy":"score","orderByDirection":"Ascending","cutOff":0,"distinctBy":"","skip":0,"queryString":"allof(agriproducts, 'wheat', 'corn', 'grapes') AND like(countryname, @countryName, -matchall)","returnScore":true,"preSearchScript":"","overridePredefinedQueryOptions":false,"returnEmptyStringForNull":true,"variables":{}}],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":false,"autoCommit":false,"directoryType":"Ram","defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":false,"indexVersion":"FlexSearch_1B","allowReads":true,"allowWrites":true},"active":true}],"error":null}

Getting an index by name

GET http://localhost:9800/indices/contact HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 1562
{"data":{"indexName":"contact","fields":[{"allowSort":false,"fieldName":"firstname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"lastname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"email","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"country","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"ipaddress","fieldType":"Keyword","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"cvv2","fieldType":"Int","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"description","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"},{"allowSort":false,"fieldName":"fullname","fieldType":"Text","indexAnalyzer":"standard","searchAnalyzer":"standard","similarity":"TFIDF"}],"predefinedQueries":[],"shardConfiguration":{"shardCount":1},"indexConfiguration":{"commitTimeSeconds":60,"deleteLogsOnClose":true,"commitOnClose":false,"autoCommit":false,"directoryType":"Ram","defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":false,"indexVersion":"FlexSearch_1B","allowReads":true,"allowWrites":true},"active":true},"error":null}

Getting a non existing index returns an error

GET http://localhost:9800/indices/2d0dc402bdb74289b3ce40f23d105b87 HTTP/1.1

Response

HTTP/1.1 404
Content-Type : application/json
Content-Length : 200
{"data":null,"error":{"properties":[{"key":"indexName","value":"2d0dc402bdb74289b3ce40f23d105b87"}],"message":"Index '2d0dc402bdb74289b3ce40f23d105b87' was not found","operationCode":"IndexNotFound"}}

Checking if an index exists

GET http://localhost:9800/indices/index-which-does-not-exist/exists HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 38
{"data":{"exists":false},"error":null}

Getting the status of an index

GET http://localhost:9800/indices/196c7424b21e43939c14cd69ee53b90b/status HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 47
{"data":{"indexStatus":"Offline"},"error":null}

Updating an index configuration

PUT http://localhost:9800/indices/53f765bc973843a6abc18d436054e5a6/configuration HTTP/1.1
{"commitTimeSeconds":100,"deleteLogsOnClose":true,"commitOnClose":true,"autoCommit":true,"directoryType":1,"defaultWriteLockTimeout":1000,"ramBufferSizeMb":100,"maxBufferedDocs":3,"refreshTimeMilliseconds":500,"autoRefresh":true,"indexVersion":1,"allowReads":true,"allowWrites":true}

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}

Deleting an index

DELETE http://localhost:9800/indices/fa201fb22532463dafd8365266496830 HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}

Deleting a non existing index will return an error

DELETE http://localhost:9800/indices/e54e6fea8feb47df8a4cd957453a7bc0 HTTP/1.1

Response

HTTP/1.1 400
Content-Type : application/json
Content-Length : 201
{"data":false,"error":{"properties":[{"key":"indexName","value":"e54e6fea8feb47df8a4cd957453a7bc0"}],"message":"Index 'e54e6fea8feb47df8a4cd957453a7bc0' was not found","operationCode":"IndexNotFound"}}

Changing the status of an index

In this particular case we are going to bring an index online, meaning we are going to set its status to online

PUT http://localhost:9800/indices/1fdd64a7dcee411eb23de0edbab70411/status/online HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}

Document API examples

Getting top 10 documents from an index

GET http://localhost:9800/indices/country/documents HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 43571
{"data":{"documents":[{"fields":{"countryname":"Gaza Strip","exports":"0","imports":"$ 2 840 000 000","independence":"10101","militaryexpenditure":"0.0","netmigration":"0.0","area":"360","internetusers":"355500","labourforce":"267000","population":"1551859","agriproducts":"olives citrus fruit vegetables flowers beef dairy products","areacomparative":"slightly more than twice the size of Washington DC","background":"The September 1993 Israel-PLO Declaration of Principles on Interim Self-Government Arrangements provided for a transitional period of Palestinian self-rule in the West Bank and Gaza Strip. Under a series of agreements signed between May 1994 and September 1999 Israel transferred to the Palestinian Authority (PA) security and civilian responsibility for Palestinian-populated areas of the West Bank and Gaza. Negotiations to determine the permanent status of the West Bank and Gaza stalled following the outbreak of an intifada in September 2000 as Israeli forces reoccupied most Palestinian-controlled areas. In April 2003 the Quartet (US EU UN and Russia) presented a roadmap to a final settlement of the conflict by 2005 based on reciprocal steps by the two parties leading to two states Israel and a democratic Palestine. The proposed date for a permanent status agreement was postponed indefinitely due to violence and accusations that both sides had not followed through on their commitments. Following Palestinian leader Yasir ARAFAT's death in late 2004 Mahmud ABBAS was elected PA president in January 2005. A month later Israel and the PA agreed to the Sharm el-Sheikh Commitments in an effort to move the peace process forward. In September 2005 Israel unilaterally withdrew all its settlers and soldiers and dismantled its military facilities in the Gaza Strip and withdrew settlers and redeployed soldiers from four small northern West Bank settlements. Nonetheless Israel controls maritime airspace and most access to the Gaza Strip. A November 2005 PA-Israeli agreement authorized the reopening of the Rafah border crossing between the Gaza Strip and Egypt under joint PA and Egyptian control. In January 2006 the Islamic Resistance Movement HAMAS won control of the Palestinian Legislative Council (PLC). The international community refused to accept the HAMAS-led government because it did not recognize Israel would not renounce violence and refused to honor previous peace agreements between Israel and the PA. HAMAS took control of the PA government in March 2006 but President ABBAS had little success negotiating with HAMAS to present a political platform acceptable to the international community so as to lift economic sanctions on Palestinians. The PLC was unable to convene throughout most of 2006 as a result of Israel's detention of many HAMAS PLC members and Israeli-imposed travel restrictions on other PLC members. Violent clashes took place between Fatah and HAMAS supporters in the Gaza Strip in 2006 and early 2007 resulting in numerous Palestinian deaths and injuries. ABBAS and HAMAS Political Bureau Chief MISHAL in February 2007 signed the Mecca Agreement in Saudi Arabia that resulted in the formation of a Palestinian National Unity Government (NUG) headed by HAMAS member Ismail HANIYA. However fighting continued in the Gaza Strip and in June HAMAS militants succeeded in a violent takeover of all military and governmental institutions in the Gaza Strip. ABBAS dismissed the NUG and through a series of Presidential decrees formed a PA government in the West Bank led by independent Salam FAYYAD. HAMAS rejected the NUG's dismissal and has called for resuming talks with Fatah but ABBAS has ruled out negotiations until HAMAS agrees to a return of PA control over the Gaza Strip and recognizes the FAYYAD-led government. FAYYAD and his PA government initiated a series of security and economic reforms to improve conditions in the West Bank. ABBAS participated in talks with Israel's Prime Minister OLMERT and secured the release of some Palestinian prisoners and previously withheld customs revenue. During a November 2007 international meeting in Annapolis Maryland ABBAS and OLMERT agreed to resume peace negotiations with the goal of reaching a final peace settlement. Late November 2007 through June 2008 witnessed a substantial increase in Israeli-Palestinian violence. An Egyptian-brokered truce in June 2008 between Israel and HAMAS brought about a five-month pause in hostilities but spiraling end-of-year violence culminated with massive Israeli air assaults on HAMAS installations in late December followed by Israeli ground attacks in early January 2009. Israel in mid January unilaterally stopped the attacks and HAMAS responded by suspending rocket and mortar fire. The fighting resulted in the deaths of an estimated 1 100 to 1 400 Palestinians and left tens of thousands of people homeless. International donors pledged $4.5 billion in aid to rebuild the Gaza Strip but by mid-May 2009 only a small fraction of the aid had been delivered.","capital":"","climate":"temperate mild winters dry and warm to hot summers","economy":"High population density limited land access and strict internal and external security controls have kept economic conditions in the Gaza Strip - the smaller of the two areas under the Palestinian Authority (PA) - even more degraded than in the West Bank. The beginning of the second intifada in September 2000 sparked an economic downturn largely the result of Israeli closure policies; these policies which were imposed to address security concerns in Israel disrupted labor and trade access to and from the Gaza Strip. In 2001 and even more severely in 2003 Israeli military measures in PA areas resulted in the destruction of capital the disruption of administrative structures and widespread business closures. The Israeli withdrawal from the Gaza Strip in September 2005 offered some medium-term opportunities for economic growth but Israeli-imposed crossings closures which became more restrictive after HAMAS violently took over the territory in June 2007 have resulted in widespread private sector layoffs and shortages of most goods. The status of the crossings which are closed to all but the most basic goods has not changed following Israel's military offensive into the Gaza Strip in early 2009.","governmenttype":"","memberof":"","countrycode":"ps","nationality":"noun: NA adjective: NA","coordinates":"31 25 n 34 20 e"},"id":"89","indexName":"country","timeStamp":20161019202027868,"modifyIndex":89,"highlights":[],"score":0},{"fields":{"countryname":"Georgia","exports":"0","imports":"$ 6 261 000 000","independence":"19910409","militaryexpenditure":"0.59","netmigration":"-4.26","area":"69700","internetusers":"360000","labourforce":"2317000","population":"4615807","agriproducts":"citrus grapes tea hazelnuts vegetables; livestock","areacomparative":"slightly smaller than South Carolina","background":"The region of present-day Georgia contained the ancient kingdoms of Colchis and Kartli-Iberia. The area came under Roman influence in the first centuries A.D. and Christianity became the state religion in the 330s. Domination by Persians Arabs and Turks was followed by a Georgian golden age (11th-13th centuries) that was cut short by the Mongol invasion of 1236. Subsequently the Ottoman and Persian empires competed for influence in the region. Georgia was absorbed into the Russian Empire in the 19th century. Independent for three years (1918-1921) following the Russian revolution it was forcibly incorporated into the USSR until the Soviet Union dissolved in 1991. An attempt by the incumbent Georgian government to manipulate national legislative elections in November 2003 touched off widespread protests that led to the resignation of Eduard SHEVARDNADZE president since 1995. New elections in early 2004 swept Mikheil SAAKASHVILI into power along with his National Movement party. Progress on market reforms and democratization has been made in the years since independence but this progress has been complicated by Russian assistance and support to the breakaway regions of Abkhazia and South Ossetia. After a series of Russian and separatist provocations in summer 2008 Georgian military action in South Ossetia in early August led to a Russian military response that not only occupied the breakaway areas but large portions of Georgia proper as well. Russian troops pulled back from most occupied Georgian territory but in late August 2008 Russia unilaterally recognized the independence of Abkhazia and South Ossetia. This action was strongly condemned by most of the world's nations and international organizations.","capital":"name: T'bilisi geographic coordinates: 41 43 N 44 47 E time difference: UTC+4 (9 hours ahead of Washington DC during Standard Time)","climate":"warm and pleasant; Mediterranean-like on Black Sea coast","economy":"Georgia's economy sustained GDP growth of close to 10% in 2006 and 12% in 2007 based on strong inflows of foreign investment and robust government spending. However growth slowed to less than 3% in 2008 and is expected to slow further in 2009. Georgia's main economic activities include the cultivation of agricultural products such as grapes citrus fruits and hazelnuts; mining of manganese and copper; and output of a small industrial sector producing alcoholic and nonalcoholic beverages metals machinery aircraft and chemicals. Areas of recent improvement include growth in the construction banking services and mining sectors but reduced availability of external investment and the slowing regional economy are emerging risks. The country imports nearly all its needed supplies of natural gas and oil products. It has sizeable hydropower capacity a growing component of its energy supplies. Georgia has overcome the chronic energy shortages of the past by renovating hydropower plants and by bringing in newly available supplies from Azerbaijan. It also has an increased ability to pay for more expensive gas imports from Russia. The construction on the Baku-T'bilisi-Ceyhan oil pipeline the Baku-T'bilisi-Erzerum gas pipeline and the Kars-Akhalkalaki Railroad are part of a strategy to capitalize on Georgia's strategic location between Europe and Asia and develop its role as a transit point for gas oil and other goods. Georgia has historically suffered from a chronic failure to collect tax revenues; however the government has made great progress and has reformed the tax code improved tax administration increased tax enforcement and cracked down on corruption since coming to power in 2004. Government revenues have increased nearly four fold since 2003. Due to improvements in customs and tax enforcement smuggling is a declining problem. The country is pinning its hopes for long-term growth on a determined effort to reduce regulation taxes and corruption in order to attract foreign investment but the economy faces a more difficult investment climate both domestically and internationally.","governmenttype":"republic","memberof":"ACCT (observer) ADB BSEC CE CIS EAPC EBRD FAO GCTU GUAM IAEA IBRD ICAO ICC ICCt ICRM IDA IFAD IFC IFRCS ILO IMF IMO Interpol IOC IOM IPU ISO (correspondent) ITSO ITU ITUC MIGA OAS (observer) OIF (observer) OPCW OSCE PFP SECI (observer) UN UNCTAD UNESCO UNIDO UNWTO UPU WCO WFTU WHO WIPO WMO WTO","countrycode":"ge","nationality":"noun: Georgian(s) adjective: Georgian","coordinates":"42 00 n 43 30 e"},"id":"90","indexName":"country","timeStamp":20161019202027868,"modifyIndex":90,"highlights":[],"score":0},{"fields":{"countryname":"Germany","exports":"0","imports":"$ 1 232 000 000 000","independence":"18710118","militaryexpenditure":"1.5","netmigration":"2.19","area":"357022","internetusers":"42500000","labourforce":"43600000","population":"82329758","agriproducts":"potatoes wheat barley sugar beets fruit cabbages; cattle pigs poultry","areacomparative":"slightly smaller than Montana","background":"As Europe's largest economy and second most populous nation (after Russia) Germany is a key member of the continent's economic political and defense organizations. European power struggles immersed Germany in two devastating World Wars in the first half of the 20th century and left the country occupied by the victorious Allied powers of the US UK France and the Soviet Union in 1945. With the advent of the Cold War two German states were formed in 1949: the western Federal Republic of Germany (FRG) and the eastern German Democratic Republic (GDR). The democratic FRG embedded itself in key Western economic and security organizations the EC which became the EU and NATO while the Communist GDR was on the front line of the Soviet-led Warsaw Pact. The decline of the USSR and the end of the Cold War allowed for German unification in 1990. Since then Germany has expended considerable funds to bring Eastern productivity and wages up to Western standards. In January 1999 Germany and 10 other EU countries introduced a common European exchange currency the euro.","capital":"name: Berlin geographic coordinates: 52 31 N 13 24 E time difference: UTC+1 (6 hours ahead of Washington DC during Standard Time) daylight saving time: +1hr begins last Sunday in March; ends last Sunday in October","climate":"temperate and marine; cool cloudy wet winters and summers; occasional warm mountain (foehn) wind","economy":"The German economy - the fifth largest economy in the world in PPP terms and Europe's largest - began to contract in the second quarter of 2008 as the strong euro high oil prices tighter credit markets and slowing growth abroad took their toll on Germany's export-dependent economy. At 1.3% in 2008 GDP growth is expected to be negative in 2009. Recent stimulus and lender relief efforts will make demands on Germany's federal budget and undercut plans to balance its budget by 2011. The reforms launched by the former government of Chancellor Gerhard SCHOEDER deemed necessary due to chronically high unemployment and low average growth led to strong growth in 2007 while unemployment in 2008 fell below 8% a new post-reunification low. Germany's aging population combined with high chronic unemployment has pushed social security outlays to a level exceeding contributions but higher government revenues from the cyclical upturn in 2006-07 and a 3% rise in the value-added tax cut Germany's budget deficit to within the EU's 3% debt limit in 2007. The current government of Chancellor Angela MERKEL has initiated other reform measures such as a gradual increase in the mandatory retirement age from 65 to 67 and measures to increase female participation in the labor market. The modernization and integration of the eastern German economy - where unemployment still exceeds 30% in some municipalities - continues to be a costly long-term process with annual transfers from west to east amounting to roughly $80 billion. While corporate restructuring and growing capital markets have set strong foundations to help Germany meet the longer-term challenges of European economic integration and globalization Germany's export-oriented economy has proved a disadvantage in the context of weak global demand.","governmenttype":"federal republic","memberof":"ADB (nonregional member) AfDB (nonregional member) Arctic Council (observer) Australia Group BIS BSEC (observer) CBSS CDB CE CERN EAPC EBRD EIB EMU ESA EU FAO G-20 G-5 G-7 G-8 G-10 IADB IAEA IBRD ICAO ICC ICCt ICRM IDA IEA IFAD IFC IFRCS IHO ILO IMF IMO IMSO Interpol IOC IOM IPU ISO ITSO ITU ITUC MIGA NAM (guest) NATO NEA NSG OAS (observer) OECD OPCW OSCE Paris Club PCA Schengen Convention SECI (observer) SICA (observer) UN UNCTAD UNESCO UNHCR UNIDO UNIFIL UNMIL UNMIS UNOMIG UNRWA UNWTO UPU WADB (nonregional) WCO WEU WFTU WHO WIPO WMO WTO ZC","countrycode":"de","nationality":"noun: German(s) adjective: German","coordinates":"51 00 n 9 00 e"},"id":"91","indexName":"country","timeStamp":20161019202027868,"modifyIndex":91,"highlights":[],"score":0},{"fields":{"countryname":"Dominican Republic","exports":"0","imports":"$ 16 080 000 000","independence":"18440227","militaryexpenditure":"0.8","netmigration":"-2.22","area":"48670","internetusers":"1677000","labourforce":"4119000","population":"9650054","agriproducts":"sugarcane coffee cotton cocoa tobacco rice beans potatoes corn bananas; cattle pigs dairy products beef eggs","areacomparative":"slightly more than twice the size of New Hampshire","background":"Explored and claimed by Christopher COLUMBUS on his first voyage in 1492 the island of Hispaniola became a springboard for Spanish conquest of the Caribbean and the American mainland. In 1697 Spain recognized French dominion over the western third of the island which in 1804 became Haiti. The remainder of the island by then known as Santo Domingo sought to gain its own independence in 1821 but was conquered and ruled by the Haitians for 22 years; it finally attained independence as the Dominican Republic in 1844. In 1861 the Dominicans voluntarily returned to the Spanish Empire but two years later they launched a war that restored independence in 1865. A legacy of unsettled mostly non-representative rule followed capped by the dictatorship of Rafael Leonidas TRUJILLO from 1930-61. Juan BOSCH was elected president in 1962 but was deposed in a military coup in 1963. In 1965 the United States led an intervention in the midst of a civil war sparked by an uprising to restore BOSCH. In 1966 Joaquin BALAGUER defeated BOSCH in an election to become president. BALAGUER maintained a tight grip on power for most of the next 30 years when international reaction to flawed elections forced him to curtail his term in 1996. Since then regular competitive elections have been held in which opposition candidates have won the presidency. Former President (1996-2000) Leonel FERNANDEZ Reyna won election to a second term in 2004 following a constitutional amendment allowing presidents to serve more than one term.","capital":"name: Santo Domingo geographic coordinates: 18 28 N 69 54 W time difference: UTC-4 (1 hour ahead of Washington DC during Standard Time)","climate":"tropical maritime; little seasonal temperature variation; seasonal variation in rainfall","economy":"The Dominican Republic has enjoyed strong GDP growth since 2005 and continued to post sound gains through mid-2008. The global recession however had a significant impact on GDP growth in the latter half of the year as tourism and remittances two of the Dominican Republic's most important economic contributors showed signs of slowing. The economy is highly dependent upon the US the destination for about two-thirds of exports. Remittances from the US amount to about a tenth of GDP equivalent to almost half of exports and three-quarters of tourism receipts. The country has long been viewed primarily as an exporter of sugar coffee and tobacco but in recent years the service sector has overtaken agriculture as the economy's largest employer due to growth in tourism and free trade zones. Although 2007 saw inflation around 6% the rate grew to over 12% in 2008. High food prices driven by the effects of consecutive tropical storms on agricultural products and education prices were significant contributors to the jump. The effects of the global financial crisis and the US recession are projected to negatively affect GDP growth in 2009 with a rebound expected in 2010. Although the economy is growing at a respectable rate high unemployment and underemployment remains an important challenge. The country suffers from marked income inequality; the poorest half of the population receives less than one-fifth of GNP while the richest 10% enjoys nearly 40% of national income. The Central America-Dominican Republic Free Trade Agreement (CAFTA-DR) came into force in March 2007 which should boost investment and exports and reduce losses to the Asian garment industry.","governmenttype":"democratic republic","memberof":"ACP BCIE Caricom (observer) FAO G-77 IADB IAEA IBRD ICAO ICC ICCt ICRM IDA IFAD IFC IFRCS IHO (suspended) ILO IMF IMO Interpol IOC IOM IPU ISO (correspondent) ITSO ITU ITUC LAES LAIA (observer) MIGA NAM OAS OPANAL OPCW (signatory) PCA RG SICA (associated member) UN UNCTAD UNESCO UNIDO Union Latina UNWTO UPU WCL WCO WFTU WHO WIPO WMO WTO","countrycode":"do","nationality":"noun: Dominican(s) adjective: Dominican","coordinates":"19 00 n 70 40 w"},"id":"70","indexName":"country","timeStamp":20161019202027824,"modifyIndex":71,"highlights":[],"score":0},{"fields":{"countryname":"Ecuador","exports":"0","imports":"$ 17 790 000 000","independence":"18220524","militaryexpenditure":"2.8","netmigration":"-0.81","area":"283561","internetusers":"1549000","labourforce":"4640000","population":"14573101","agriproducts":"bananas coffee cocoa rice potatoes manioc (tapioca) plantains sugarcane; cattle sheep pigs beef pork dairy products; balsa wood; fish shrimp","areacomparative":"slightly smaller than Nevada","background":"What is now Ecuador formed part of the northern Inca Empire until the Spanish conquest in 1533. Quito became a seat of Spanish colonial government in 1563 and part of the Viceroyalty of New Granada in 1717. The territories of the Viceroyalty - New Granada (Colombia) Venezuela and Quito - gained their independence between 1819 and 1822 and formed a federation known as Gran Colombia. When Quito withdrew in 1830 the traditional name was changed in favor of the \"Republic of the Equator.\" Between 1904 and 1942 Ecuador lost territories in a series of conflicts with its neighbors. A border war with Peru that flared in 1995 was resolved in 1999. Although Ecuador marked 25 years of civilian governance in 2004 the period has been marred by political instability. Protests in Quito have contributed to the mid-term ouster of Ecuador's last three democratically elected Presidents. In September 2008 voters approved a new constitution; Ecuador's twentieth since gaining independence. General elections under the new constitutional framework are expected in April 2009.","capital":"name: Quito geographic coordinates: 0 13 S 78 30 W time difference: UTC-5 (same time as Washington DC during Standard Time)","climate":"tropical along coast becoming cooler inland at higher elevations; tropical in Amazonian jungle lowlands","economy":"Ecuador is substantially dependent on its petroleum resources which have accounted for more than half of the country's export earnings and one-fourth of public sector revenues in recent years. In 1999/2000 Ecuador suffered a severe economic crisis with GDP contracting by more than 6%. Poverty increased significantly the banking system collapsed and Ecuador defaulted on its external debt later that year. In March 2000 Congress approved a series of structural reforms that also provided for the adoption of the US dollar as legal tender. Dollarization stabilized the economy and positive growth returned in the years that followed helped by high oil prices remittances and increased non-traditional exports. From 2002-06 the economy grew 5.5% the highest five-year average in 25 years. The poverty rate declined but remained high at 38% in 2006. In 2006 the government imposed a windfall revenue tax on foreign oil companies leading to the suspension of free trade negotiations with the US. These measures led to a drop in petroleum production in 2007. President Rafael CORREA raised the specter of debt default and followed through on those threats in December 2008 by defaulting on some commercial bond obligations. He also decreed a higher windfall revenue tax on private oil companies then renegotiated their contracts to overcome the debilitating effect of the tax. This generated economic uncertainty; private investment has dropped and economic growth has slowed.","governmenttype":"republic","memberof":"CAN FAO G-77 IADB IAEA IBRD ICAO ICC ICCt ICRM IDA IFAD IFC IFRCS IHO ILO IMF IMO Interpol IOC IOM IPU ISO ITSO ITU ITUC LAES LAIA Mercosur (associate) MIGA MINURCAT MINUSTAH NAM OAS OPANAL OPCW OPEC PCA RG UN UNASUR UNCTAD UNESCO UNHCR UNIDO Union Latina UNMIL UNMIS UNOCI UNWTO UPU WCL WCO WFTU WHO WIPO WMO WTO","countrycode":"ec","nationality":"noun: Ecuadorian(s) adjective: Ecuadorian","coordinates":"2 00 s 77 30 w"},"id":"71","indexName":"country","timeStamp":20161019202027824,"modifyIndex":72,"highlights":[],"score":0},{"fields":{"countryname":"Egypt","exports":"0","imports":"$ 56 620 000 000","independence":"19220228","militaryexpenditure":"3.4","netmigration":"-0.2","area":"1001450","internetusers":"8620000","labourforce":"24600000","population":"83082869","agriproducts":"cotton rice corn wheat beans fruits vegetables; cattle water buffalo sheep goats","areacomparative":"slightly more than three times the size of New Mexico","background":"The regularity and richness of the annual Nile River flood coupled with semi-isolation provided by deserts to the east and west allowed for the development of one of the world's great civilizations. A unified kingdom arose circa 3200 B.C. and a series of dynasties ruled in Egypt for the next three millennia. The last native dynasty fell to the Persians in 341 B.C. who in turn were replaced by the Greeks Romans and Byzantines. It was the Arabs who introduced Islam and the Arabic language in the 7th century and who ruled for the next six centuries. A local military caste the Mamluks took control about 1250 and continued to govern after the conquest of Egypt by the Ottoman Turks in 1517. Following the completion of the Suez Canal in 1869 Egypt became an important world transportation hub but also fell heavily into debt. Ostensibly to protect its investments Britain seized control of Egypt's government in 1882 but nominal allegiance to the Ottoman Empire continued until 1914. Partially independent from the UK in 1922 Egypt acquired full sovereignty with the overthrow of the British-backed monarchy in 1952. The completion of the Aswan High Dam in 1971 and the resultant Lake Nasser have altered the time-honored place of the Nile River in the agriculture and ecology of Egypt. A rapidly growing population (the largest in the Arab world) limited arable land and dependence on the Nile all continue to overtax resources and stress society. The government has struggled to meet the demands of Egypt's growing population through economic reform and massive investment in communications and physical infrastructure.","capital":"name: Cairo geographic coordinates: 30 03 N 31 15 E time difference: UTC+2 (7 hours ahead of Washington DC during Standard Time) daylight saving time: +1hr begins last Friday in April; ends last Thursday in September","climate":"desert; hot dry summers with moderate winters","economy":"Occupying the northeast corner of the African continent Egypt is bisected by the highly fertile Nile valley where most economic activity takes place. Egypt's economy was highly centralized during the rule of former President Gamal Abdel NASSER but has opened up considerably under former President Anwar EL-SADAT and current President Mohamed Hosni MUBARAK. Cairo has aggressively pursued economic reforms to encourage inflows of foreign investment and facilitate GDP growth. In 2005 Prime Minister Ahmed NAZIF's government reduced personal and corporate tax rates reduced energy subsidies and privatized several enterprises. The stock market boomed and GDP grew about 7% each year since 2006. Despite these achievements the government has failed to raise living standards for the average Egyptian and has had to continue providing subsidies for basic necessities. The subsidies have contributed to a sizeable budget deficit - roughly 7% of GDP in 2007-08 - and represent a significant drain on the economy. Foreign direct investment has increased significantly in the past two years but the NAZIF government will need to continue its aggressive pursuit of reforms in order to sustain the spike in investment and growth and begin to improve economic conditions for the broader population. Egypt's export sectors - particularly natural gas - have bright prospects.","governmenttype":"republic","memberof":"ABEDA ACCT AfDB AFESD AMF AU BSEC (observer) CAEU COMESA EBRD FAO G-15 G-24 G-77 IAEA IBRD ICAO ICC ICCt (signatory) ICRM IDA IDB IFAD IFC IFRCS IHO ILO IMF IMO IMSO Interpol IOC IOM IPU ISO ITSO ITU LAS MIGA MINURCAT MINURSO MONUC NAM OAPEC OAS (observer) OIC OIF OSCE (partner) PCA UN UNAMID UNCTAD UNESCO UNHCR UNIDO UNMIL UNMIS UNOMIG UNRWA UNWTO UPU WCO WFTU WHO WIPO WMO WTO","countrycode":"eg","nationality":"noun: Egyptian(s) adjective: Egyptian","coordinates":"27 00 n 30 00 e"},"id":"72","indexName":"country","timeStamp":20161019202027824,"modifyIndex":73,"highlights":[],"score":0},{"fields":{"countryname":"Cote d'Ivoire","exports":"0","imports":"$ 7 155 000 000","independence":"19600807","militaryexpenditure":"1.6","netmigration":"0.0","area":"322463","internetusers":"300000","labourforce":"7275000","population":"20617068","agriproducts":"coffee cocoa beans bananas palm kernels corn rice manioc (tapioca) sweet potatoes sugar cotton rubber; timber","areacomparative":"slightly larger than New Mexico","background":"Close ties to France since independence in 1960 the development of cocoa production for export and foreign investment made Cote d'Ivoire one of the most prosperous of the West African states but did not protect it from political turmoil. In December 1999 a military coup - the first ever in Cote d'Ivoire's history - overthrew the government. Junta leader Robert GUEI blatantly rigged elections held in late 2000 and declared himself the winner. Popular protest forced him to step aside and brought Laurent GBAGBO into power. Ivorian dissidents and disaffected members of the military launched a failed coup attempt in September 2002. Rebel forces claimed the northern half of the country and in January 2003 were granted ministerial positions in a unity government under the auspices of the Linas-Marcoussis Peace Accord. President GBAGBO and rebel forces resumed implementation of the peace accord in December 2003 after a three-month stalemate but issues that sparked the civil war such as land reform and grounds for citizenship remained unresolved. In March 2007 President GBAGBO and former New Force rebel leader Guillaume SORO signed the Ouagadougou Political Agreement. As a result of the agreement SORO joined GBAGBO's government as Prime Minister and the two agreed to reunite the country by dismantling the zone of confidence separating North from South integrate rebel forces into the national armed forces and hold elections. Several thousand French and UN troops remain in Cote d'Ivoire to help the parties implement their commitments and to support the peace process.","capital":"name: Yamoussoukro geographic coordinates: 6 49 N 5 17 W time difference: UTC 0 (5 hours ahead of Washington DC during Standard Time) note: although Yamoussoukro has been the official capital since 1983 Abidjan remains the commercial and administrative center; the US like other countries maintains its Embassy in Abidjan","climate":"tropical along coast semiarid in far north; three seasons - warm and dry (November to March) hot and dry (March to May) hot and wet (June to October)","economy":"Cote d'Ivoire is the world's largest producer and exporter of cocoa beans and a significant producer and exporter of coffee and palm oil. Consequently the economy is highly sensitive to fluctuations in international prices for these products and to a lesser extent in climatic conditions. Despite government attempts to diversify the economy it is still heavily dependent on agriculture and related activities engaging roughly 68% of the population. Since 2006 oil and gas production have become more important engines of economic activity than cocoa. According to IMF statistics earnings from oil and refined products were $1.3 billion in 2006 while cocoa-related revenues were $1 billion during the same period. Cote d'Ivoire's offshore oil and gas production has resulted in substantial crude oil exports and provides sufficient natural gas to fuel electricity exports to Ghana Togo Benin Mali and Burkina Faso. Oil exploration by a number of consortiums of private companies continues offshore and President GBAGBO has expressed hope that daily crude output could reach 200 000 barrels per day (b/d) by the end of the decade. Since the end of the civil war in 2003 political turmoil has continued to damage the economy resulting in the loss of foreign investment and slow economic growth. GDP grew by nearly 2% in 2007 and 3% in 2008. Per capita income has declined by 15% since 1999.","governmenttype":"republic; multiparty presidential regime established 1960 note: the government is currently operating under a power-sharing agreement mandated by international mediators","memberof":"ACCT ACP AfDB AU ECOWAS Entente FAO FZ G-24 G-77 IAEA IBRD ICAO ICCt (signatory) ICRM IDA IDB IFAD IFC IFRCS ILO IMF IMO Interpol IOC IOM IPU ITSO ITU ITUC MIGA NAM OIC OIF OPCW UN UNCTAD UNESCO UNHCR UNIDO Union Latina UNWTO UPU WADB (regional) WAEMU WCL WCO WFTU WHO WIPO WMO WTO","countrycode":"ci","nationality":"noun: Ivoirian(s) adjective: Ivoirian","coordinates":"8 00 n 5 00 w"},"id":"61","indexName":"country","timeStamp":20161019202027800,"modifyIndex":62,"highlights":[],"score":0},{"fields":{"countryname":"Croatia","exports":"0","imports":"$ 30 740 000 000","independence":"19910625","militaryexpenditure":"2.39","netmigration":"1.59","area":"56594","internetusers":"1995000","labourforce":"1731000","population":"4489409","agriproducts":"wheat corn sugar beets sunflower seed barley alfalfa clover olives citrus grapes soybeans potatoes; livestock dairy products","areacomparative":"slightly smaller than West Virginia","background":"The lands that today comprise Croatia were part of the Austro-Hungarian Empire until the close of World War I. In 1918 the Croats Serbs and Slovenes formed a kingdom known after 1929 as Yugoslavia. Following World War II Yugoslavia became a federal independent Communist state under the strong hand of Marshal TITO. Although Croatia declared its independence from Yugoslavia in 1991 it took four years of sporadic but often bitter fighting before occupying Serb armies were mostly cleared from Croatian lands. Under UN supervision the last Serb-held enclave in eastern Slavonia was returned to Croatia in 1998. In January 2008 Croatia assumed a nonpermanent seat on the UN Security Council for the 2008-09 term and in April 2008 it joined NATO. Croatia is a candidate for eventual EU accession.","capital":"name: Zagreb geographic coordinates: 45 48 N 16 00 E time difference: UTC+1 (6 hours ahead of Washington DC during Standard Time) daylight saving time: +1hr begins last Sunday in March; ends last Sunday in October","climate":"Mediterranean and continental; continental climate predominant with hot summers and cold winters; mild winters dry summers along coast","economy":"Once one of the wealthiest of the Yugoslav republics Croatia's economy suffered badly during the 1991-95 war as output collapsed and the country missed the early waves of investment in Central and Eastern Europe that followed the fall of the Berlin Wall. Since 2000 however Croatia's economic fortunes have begun to improve slowly with moderate but steady GDP growth between 4% and 6% led by a rebound in tourism and credit-driven consumer spending. Inflation over the same period has remained tame and the currency the kuna stable. Nevertheless difficult problems still remain including a stubbornly high unemployment rate a growing trade deficit and uneven regional development. The state retains a large role in the economy as privatization efforts often meet stiff public and political resistance. While macroeconomic stabilization has largely been achieved structural reforms lag because of deep resistance on the part of the public and lack of strong support from politicians. The EU accession process should accelerate fiscal and structural reform. While long term growth prospects for the economy remain strong Croatia will face significant pressure as a result of the global financial crisis. Croatia's high foreign debt anemic export sector strained state budget and over-reliance on tourism revenue will result in higher risk to economic stability over the medium term.","governmenttype":"presidential/parliamentary democracy","memberof":"ACCT (observer) Australia Group BIS BSEC (observer) CE CEI EAPC EBRD FAO IADB IAEA IBRD ICAO ICC ICCt ICRM IDA IFAD IFC IFRCS IHO ILO IMF IMO IMSO Interpol IOC IOM IPU ISO ITSO ITU ITUC MIGA MINURSO MINUSTAH NAM (observer) NATO NSG OAS (observer) OIF (observer) OPCW OSCE PCA SECI UN UNCTAD UNDOF UNESCO UNFICYP UNIDO UNIFIL UNMIL UNMIS UNMOGIP UNOCI UNOMIG UNWTO UPU WCO WFTU WHO WIPO WMO WTO ZC","countrycode":"hr","nationality":"noun: Croat(s) Croatian(s) adjective: Croatian","coordinates":"45 10 n 15 30 e"},"id":"62","indexName":"country","timeStamp":20161019202027800,"modifyIndex":63,"highlights":[],"score":0},{"fields":{"countryname":"Cuba","exports":"0","imports":"$ 14 500 000 000","independence":"19020520","militaryexpenditure":"3.8","netmigration":"-1.56","area":"110860","internetusers":"1310000","labourforce":"4962000","population":"11451652","agriproducts":"sugar tobacco citrus coffee rice potatoes beans; livestock","areacomparative":"slightly smaller than Pennsylvania","background":"The native Amerindian population of Cuba began to decline after the European discovery of the island by Christopher COLUMBUS in 1492 and following its development as a Spanish colony during the next several centuries. Large numbers of African slaves were imported to work the coffee and sugar plantations and Havana became the launching point for the annual treasure fleets bound for Spain from Mexico and Peru. Spanish rule eventually provoked an independence movement and occasional rebellions that were harshly suppressed. US intervention during the Spanish-American War in 1898 assisted the Cubans in overthrowing Spanish rule. The Treaty of Paris established Cuban independence from the US in 1902 after which the island experienced a string of governments mostly dominated by the military and corrupt politicians. Fidel CASTRO led a rebel army to victory in 1959; his iron rule held the subsequent regime together for nearly five decades. He stepped down as president in February 2008 in favor of his younger brother Raul CASTRO. Cuba's Communist revolution with Soviet support was exported throughout Latin America and Africa during the 1960s 1970s and 1980s. The country faced a severe economic downturn in 1990 following the withdrawal of former Soviet subsidies worth $4 billion to $6 billion annually. Cuba portrays its difficulties as the result of the US embargo in place since 1961. Illicit migration to the US - using homemade rafts alien smugglers air flights or via the southwest border - is a continuing problem. The US Coast Guard intercepted 2 656 individuals attempting to cross the Straits of Florida in fiscal year 2007.","capital":"name: Havana geographic coordinates: 23 07 N 82 21 W time difference: UTC-5 (same time as Washington DC during Standard Time) daylight saving time: +1hr begins last Sunday in March; ends last Sunday in October","climate":"tropical; moderated by trade winds; dry season (November to April); rainy season (May to October)","economy":"The government continues to balance the need for economic loosening against a desire for firm political control. It has rolled back limited reforms undertaken in the 1990s to increase enterprise efficiency and alleviate serious shortages of food consumer goods and services. The average Cuban's standard of living remains at a lower level than before the downturn of the 1990s which was caused by the loss of Soviet aid and domestic inefficiencies. Since late 2000 Venezuela has been providing oil on preferential terms and it currently supplies about 100 000 barrels per day of petroleum products. Cuba has been paying for the oil in part with the services of Cuban personnel in Venezuela including some 30 000 medical professionals.","governmenttype":"Communist state","memberof":"ACP FAO G-77 IAEA ICAO ICC ICRM IFAD IFRCS IHO ILO IMO IMSO Interpol IOC IOM (observer) IPU ISO ITSO ITU LAES LAIA NAM OAS (excluded from formal participation since 1962) OPANAL OPCW PCA UN UNCTAD UNESCO UNIDO Union Latina UNITAR UNWTO UPU WCL WCO WFTU WHO WIPO WMO WTO","countrycode":"cu","nationality":"noun: Cuban(s) adjective: Cuban","coordinates":"21 30 n 80 00 w"},"id":"63","indexName":"country","timeStamp":20161019202027800,"modifyIndex":64,"highlights":[],"score":0},{"fields":{"countryname":"Estonia","exports":"0","imports":"$ 15 290 000 000","independence":"19910820","militaryexpenditure":"2.0","netmigration":"-3.26","area":"45228","internetusers":"780000","labourforce":"693000","population":"1299371","agriproducts":"potatoes vegetables; livestock and dairy products; fish","areacomparative":"slightly smaller than New Hampshire and Vermont combined","background":"After centuries of Danish Swedish German and Russian rule Estonia attained independence in 1918. Forcibly incorporated into the USSR in 1940 - an action never recognized by the US - it regained its freedom in 1991 with the collapse of the Soviet Union. Since the last Russian troops left in 1994 Estonia has been free to promote economic and political ties with Western Europe. It joined both NATO and the EU in the spring of 2004.","capital":"name: Tallinn geographic coordinates: 59 26 N 24 43 E time difference: UTC+2 (7 hours ahead of Washington DC during Standard Time) daylight saving time: +1hr begins last Sunday in March; ends last Sunday in October","climate":"maritime; wet moderate winters cool summers","economy":"Estonia a 2004 European Union entrant has a modern market-based economy and one of the highest per capita income levels in Central Europe. Estonia's successive governments have pursued a free market pro-business economic agenda and have wavered little in their commitment to pro-market reforms. Tallinn's priority has been to sustain high growth rates - on average 8% per year from 2003 to 2007. The economy benefits from strong electronics and telecommunications sectors and strong trade ties with Finland Sweden and Germany. The current government has pursued relatively sound fiscal policies resulting in balanced budgets and low public debt. Rapid growth however has made it difficult to keep inflation and large current-account deficits from soaring putting downward pressure on the country's currency. The government has not given up on adopting the euro but has repeatedly postponed its target date. Estonia's economy slowed down markedly and even fell into recession in mid-2008 primarily as a result of an investment and consumption slump following the bursting of the real estate market bubble.","governmenttype":"parliamentary republic","memberof":"Australia Group BA BIS CBSS CE EAPC EBRD EIB EU FAO IAEA IBRD ICAO ICCt ICRM IDA IFC IFRCS IHO ILO IMF IMO Interpol IOC IOM IPU ISO (correspondent) ITU ITUC MIGA NATO NIB NSG OAS (observer) OECD (accession state) OPCW OSCE PCA Schengen Convention UN UNCTAD UNESCO UNHCR UNITAR UNTSO UPU WCO WEU (associate partner) WFTU WHO WIPO WMO WTO","countrycode":"ee","nationality":"noun: Estonian(s) adjective: Estonian","coordinates":"59 00 n 26 00 e"},"id":"77","indexName":"country","timeStamp":20161019202027840,"modifyIndex":77,"highlights":[],"score":0}],"recordsReturned":10,"bestScore":1,"totalAvailable":259},"error":null}

Getting a document by ID

GET http://localhost:9800/indices/country/documents/1 HTTP/1.1

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 4274
{"data":{"fields":{"countryname":"Afghanistan","exports":"0","imports":"$ 4 850 000 000","independence":"19190819","militaryexpenditure":"1.9","netmigration":"21.0","area":"652230","internetusers":"580000","labourforce":"15000000","population":"33609937","agriproducts":"opium wheat fruits nuts; wool mutton sheepskins lambskins","areacomparative":"slightly smaller than Texas","background":"Ahmad Shah DURRANI unified the Pashtun tribes and founded Afghanistan in 1747. The country served as a buffer between the British and Russian empires until it won independence from notional British control in 1919. A brief experiment in democracy ended in a 1973 coup and a 1978 Communist counter-coup. The Soviet Union invaded in 1979 to support the tottering Afghan Communist regime touching off a long and destructive war. The USSR withdrew in 1989 under relentless pressure by internationally supported anti-Communist mujahedin rebels. A series of subsequent civil wars saw Kabul finally fall in 1996 to the Taliban a hardline Pakistani-sponsored movement that emerged in 1994 to end the country's civil war and anarchy. Following the 11 September 2001 terrorist attacks in New York City a US Allied and anti-Taliban Northern Alliance military action toppled the Taliban for sheltering Osama BIN LADIN. The UN-sponsored Bonn Conference in 2001 established a process for political reconstruction that included the adoption of a new constitution a presidential election in 2004 and National Assembly elections in 2005. In December 2004 Hamid KARZAI became the first democratically elected president of Afghanistan and the National Assembly was inaugurated the following December. Despite gains toward building a stable central government a resurgent Taliban and continuing provincial instability - particularly in the south and the east - remain serious challenges for the Afghan Government.","capital":"name: Kabul geographic coordinates: 34 31 N 69 11 E time difference: UTC+4.5 (9.5 hours ahead of Washington DC during Standard Time)","climate":"arid to semiarid; cold winters and hot summers","economy":"Afghanistan's economy is recovering from decades of conflict. The economy has improved significantly since the fall of the Taliban regime in 2001 largely because of the infusion of international assistance the recovery of the agricultural sector and service sector growth. Real GDP growth exceeded 7% in 2008. Despite the progress of the past few years Afghanistan is extremely poor landlocked and highly dependent on foreign aid agriculture and trade with neighboring countries. Much of the population continues to suffer from shortages of housing clean water electricity medical care and jobs. Criminality insecurity and the Afghan Government's inability to extend rule of law to all parts of the country pose challenges to future economic growth. It will probably take the remainder of the decade and continuing donor aid and attention to significantly raise Afghanistan's living standards from its current level among the lowest in the world. International pledges made by more than 60 countries and international financial institutions at the Berlin Donors Conference for Afghan reconstruction in March 2004 reached $8.9 billion for 2004-09. While the international community remains committed to Afghanistan's development pledging over $57 billion at three donors' conferences since 2002 Kabul will need to overcome a number of challenges. Expanding poppy cultivation and a growing opium trade generate roughly $3 billion in illicit economic activity and looms as one of Kabul's most serious policy concerns. Other long-term challenges include: budget sustainability job creation corruption government capacity and rebuilding war torn infrastructure.","governmenttype":"Islamic republic","memberof":"ADB CP ECO FAO G-77 IAEA IBRD ICAO ICCt IDA IDB IFAD IFC IFRCS ILO IMF Interpol IOC IOM ISO (correspondent) ITSO ITU MIGA NAM OIC OPCW OSCE (partner) SAARC SACEP SCO (guest) UN UNCTAD UNESCO UNIDO UNWTO UPU WCO WFTU WHO WIPO WMO WTO (observer)","countrycode":"af","nationality":"noun: Afghan(s) adjective: Afghan","coordinates":"33 00 n 65 00 e"},"id":"1","indexName":"country","timeStamp":20161019202025370,"modifyIndex":2,"highlights":[],"score":0},"error":null}

Modifying an existing document

POST http://localhost:9800/indices/fbd8ae0058f44103879437f65e39143d/documents HTTP/1.1
{"fields":{"firstname":"Seemant","lastname":"Rajvanshi"},"id":"1","indexName":"fbd8ae0058f44103879437f65e39143d","timeStamp":0,"modifyIndex":0,"highlights":[],"score":0}

Response

HTTP/1.1 201
Content-Type : application/json
Content-Length : 32
{"data":{"id":"1"},"error":null}

Creating a new document

POST http://localhost:9800/indices/a0acb77c54104a23a80d3172758c4a0e/documents HTTP/1.1
{"fields":{"firstname":"Seemant","lastname":"Rajvanshi"},"id":"1","indexName":"a0acb77c54104a23a80d3172758c4a0e","timeStamp":0,"modifyIndex":0,"highlights":[],"score":0}

Response

HTTP/1.1 201
Content-Type : application/json
Content-Length : 32
{"data":{"id":"1"},"error":null}

Getting a non-existing document by ID returns Not Found

POST http://localhost:9800/indices/6d30a404eea64c848e4af2be494a4e57/documents HTTP/1.1
{"fields":{"firstname":"Seemant","lastname":"Rajvanshi"},"id":"1","indexName":"6d30a404eea64c848e4af2be494a4e57","timeStamp":0,"modifyIndex":0,"highlights":[],"score":0}

Response

HTTP/1.1 201
Content-Type : application/json
Content-Length : 32
{"data":{"id":"1"},"error":null}

Search API Examples

Create or Update a Predefined Query

Whether you want to create or update a predefined query, the method is the same.

PUT http://localhost:9800/indices/9ce97e85581d4866b9d1842ec3e56871/predefinedQuery HTTP/1.1
{"queryName":"all","columns":[],"count":10,"highlights":{"fragmentsToReturn":2,"highlightedFields":[],"postTag":"</B>","preTag":"<B>"},"indexName":"9ce97e85581d4866b9d1842ec3e56871","orderBy":"score","orderByDirection":0,"cutOff":0,"distinctBy":"","skip":0,"queryString":"matchall(et1, 'x')","returnScore":true,"preSearchScript":"","overridePredefinedQueryOptions":false,"returnEmptyStringForNull":true,"variables":{}}

Response

HTTP/1.1 200
Content-Type : application/json
Content-Length : 26
{"data":true,"error":null}
AllOf 2 clauses with single tokens
allOf(agriproducts, 'rice') and allOf(agriproducts, 'wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available12
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
AllOf single clause with a single token
allOf(agriproducts, 'rice wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available12
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
AllOf single clause with 2 tokens
allOf(agriproducts, 'rice', 'wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available12
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
AnyOf 2 clauses with single tokens
anyOf(agriproducts, 'rice') OR anyOf(agriproducts, 'wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available113
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
AnyOf single clause with a single token
anyOf(agriproducts, 'rice wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available113
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
AnyOf single clause with 2 tokens
anyOf(agriproducts, 'rice', 'wheat')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available113
Brazilcoffee soybeans wheat rice corn sugarcane cocoa citrus; beeffederal republic198739269
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Pakistancotton wheat rice sugarcane fruits vegetables; milk beef mutton eggsfederal republic176242949
Uruguayrice wheat soybeans barley; livestock beef; fish; forestryconstitutional republic3494382
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Fuzzy with default slop of 1
fuzzy(countryname, 'Iran')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available2
Iranwheat rice other grains sugar beets sugar cane fruits nuts cotton; dairy products wool; caviartheocratic republic66429284
Iraqwheat barley rice vegetables dates cotton; cattle sheep poultryparliamentary democracy28945657
Fuzzy with slop of 2
fuzzy(countryname, 'China', -slop '2')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available3
Chinarice wheat potatoes corn peanuts tea millet barley apples cotton oilseed; pork; fishCommunist state1338612968
Chilegrapes apples pears onions wheat corn oats peaches garlic asparagus beans; beef poultry wool; fish; timberrepublic16601707
Ghanacocoa rice cassava (tapioca) peanuts corn shea nuts bananas; timberconstitutional democracy23832495
Like using ‘*’ operator
like(countryname, 'uni*')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available5
European Unionwheat barley oilseeds sugar beets wine grapes; dairy products cattle sheep pigs poultry; fish491582852
United Arab Emiratesdates vegetables watermelons; poultry eggs dairy products; fishfederation with specified powers delegated to the UAE federal government and other powers reserved to member emirates4798491
United Kingdomcereals oilseed potatoes vegetables; cattle sheep poultry; fishconstitutional monarchy and Commonwealth realm61113205
United Stateswheat corn other grains fruits vegetables cotton; beef pork poultry dairy products; fish; forest productsConstitution-based federal republic; strong democratic tradition307212123
United States Pacific Island Wildlife Refuges0
Like with single character operator
like(countryname, 'unit?d')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available4
United Arab Emiratesdates vegetables watermelons; poultry eggs dairy products; fishfederation with specified powers delegated to the UAE federal government and other powers reserved to member emirates4798491
United Kingdomcereals oilseed potatoes vegetables; cattle sheep poultry; fishconstitutional monarchy and Commonwealth realm61113205
United Stateswheat corn other grains fruits vegetables cotton; beef pork poultry dairy products; fish; forest productsConstitution-based federal republic; strong democratic tradition307212123
United States Pacific Island Wildlife Refuges0
Matching inside a word using like
like(countryname, '*uni*')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available6
European Unionwheat barley oilseeds sugar beets wine grapes; dairy products cattle sheep pigs poultry; fish491582852
Tunisiaolives olive oil grain tomatoes citrus fruit sugar beets dates almonds; beef dairy productsrepublic10486339
United Arab Emiratesdates vegetables watermelons; poultry eggs dairy products; fishfederation with specified powers delegated to the UAE federal government and other powers reserved to member emirates4798491
United Kingdomcereals oilseed potatoes vegetables; cattle sheep poultry; fishconstitutional monarchy and Commonwealth realm61113205
United Stateswheat corn other grains fruits vegetables cotton; beef pork poultry dairy products; fish; forest productsConstitution-based federal republic; strong democratic tradition307212123
Matchall to get all documents back
matchall(countryname, '*')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available259
Angolabananas sugarcane coffee sisal corn cotton manioc (tapioca) tobacco vegetables plantains; livestock; forest products; fishrepublic; multiparty presidential regime12799293
Anguillasmall quantities of tobacco vegetables; cattle raising14436
AntarcticaAntarctic Treaty Summary - the Antarctic Treaty signed on 1 December 1959 and entered into force on 23 June 1961 establishes the legal framework for the management of Antarctica; the 32nd Antarctic Treaty Consultative Meeting was held in Baltimore MD USA in April 2009; at these periodic meetings decisions are made by consensus (not by vote) of all consultative member nations; by May 2009 there were 47 treaty member nations: 28 consultative and 19 non-consultative; consultative (decision-making) members include the seven nations that claim portions of Antarctica as national territory (some claims overlap) and 21 non-claimant nations; the US and Russia have reserved the right to make claims; the US does not recognize the claims of others; Antarctica is administered through meetings of the consultative member nations; decisions from these meetings are carried out by these member nations (with respect to their own nationals and operations) in accordance with their own national laws; the years in parentheses indicate when a consultative member-nation acceded to the Treaty and when it was accepted as a consultative member while no date indicates the country was an original 1959 treaty signatory; claimant nations are - Argentina Australia Chile France NZ Norway and the UK. Nonclaimant consultative nations are - Belgium Brazil (1975/1983) Bulgaria (1978/1998) China (1983/1985) Ecuador (1987/1990) Finland (1984/1989) Germany (1979/1981) India (1983/1983) Italy (1981/1987) Japan South Korea (1986/1989) Netherlands (1967/1990) Peru (1981/1989) Poland (1961/1977) Russia South Africa Spain (1982/1988) Sweden (1984/1988) Ukraine (1992/2004) Uruguay (1980/1985) and the US; non-consultative members with year of accession in parentheses are - Austria (1987) Belarus (2006) Canada (1988) Colombia (1989) Cuba (1984) Czech Republic (1962/1993) Denmark (1965) Estonia (2001) Greece (1987) Guatemala (1991) Hungary (1984) North Korea (1987) Monaco (2008) Papua New Guinea (1981) Romania (1971) Slovakia (1962/1993) Switzerland (1990) Turkey (1996) and Venezuela (1999); note - Czechoslovakia acceded to the Treaty in 1962 and separated into the Czech Republic and Slovakia in 1993; Article 1 - area to be used for peaceful purposes only; military activity such as weapons testing is prohibited but military personnel and equipment may be used for scientific research or any other peaceful purpose; Article 2 - freedom of scientific investigation and cooperation shall continue; Article 3 - free exchange of information and personnel cooperation with the UN and other international agencies; Article 4 - does not recognize dispute or establish territorial claims and no new claims shall be asserted while the treaty is in force; Article 5 - prohibits nuclear explosions or disposal of radioactive wastes; Article 6 - includes under the treaty all land and ice shelves south of 60 degrees 00 minutes south and reserves high seas rights; Article 7 - treaty-state observers have free access including aerial observation to any area and may inspect all stations installations and equipment; advance notice of all expeditions and of the introduction of military personnel must be given; Article 8 - allows for jurisdiction over observers and scientists by their own states; Article 9 - frequent consultative meetings take place among member nations; Article 10 - treaty states will discourage activities by any country in Antarctica that are contrary to the treaty; Article 11 - disputes to be settled peacefully by the parties concerned or ultimately by the ICJ; Articles 12 13 14 - deal with upholding interpreting and amending the treaty among involved nations; other agreements - some 200 recommendations adopted at treaty consultative meetings and ratified by governments include - Agreed Measures for Fauna and Flora (1964) which were later incorporated into the Environmental Protocol; Convention for the Conservation of Antarctic Seals (1972); Convention on the Conservation of Antarctic Marine Living Resources (1980); a mineral resources agreement was signed in 1988 but remains unratified; the Protocol on Environmental Protection to the Antarctic Treaty was signed 4 October 1991 and entered into force 14 January 1998; this agreement provides for the protection of the Antarctic environment through six specific annexes: 1) environmental impact assessment 2) conservation of Antarctic fauna and flora 3) waste disposal and waste management 4) prevention of marine pollution 5) area protection and management and 6) liability arising from environmental emergencies; it prohibits all activities relating to mineral resources except scientific research; a permanent Antarctic Treaty Secretariat was established in 2004 in Buenos Aires Argentina0
Bermudabananas vegetables citrus flowers; dairy products honeyparliamentary; self-governing territory67837
Bhutanrice corn root crops citrus foodgrains; dairy products eggsconstitutional monarchy691141
Matchnone will not match any documents
matchnone(countryname, '*')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available0
Greater than ‘gt’ operator
gt(population, '1000000')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available157
Angolabananas sugarcane coffee sisal corn cotton manioc (tapioca) tobacco vegetables plantains; livestock; forest products; fishrepublic; multiparty presidential regime12799293
Boliviasoybeans coffee coca cotton corn sugarcane rice potatoes; timberrepublic; note - the new constitution defines Bolivia as a "Social Unitarian State"9775246
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Belarusgrain potatoes vegetables sugar beets flax; beef milkrepublic in name although in fact a dictatorship9648533
Azerbaijancotton grain rice grapes fruit vegetables tea tobacco; cattle pigs sheep goatsrepublic8238672
Greater than or equal to ‘ge’ operator
ge(population, '1000000')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available157
Angolabananas sugarcane coffee sisal corn cotton manioc (tapioca) tobacco vegetables plantains; livestock; forest products; fishrepublic; multiparty presidential regime12799293
Boliviasoybeans coffee coca cotton corn sugarcane rice potatoes; timberrepublic; note - the new constitution defines Bolivia as a "Social Unitarian State"9775246
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Belarusgrain potatoes vegetables sugar beets flax; beef milkrepublic in name although in fact a dictatorship9648533
Azerbaijancotton grain rice grapes fruit vegetables tea tobacco; cattle pigs sheep goatsrepublic8238672
Less than ‘lt’ operator
lt(population, '1000000')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available102
Anguillasmall quantities of tobacco vegetables; cattle raising14436
AntarcticaAntarctic Treaty Summary - the Antarctic Treaty signed on 1 December 1959 and entered into force on 23 June 1961 establishes the legal framework for the management of Antarctica; the 32nd Antarctic Treaty Consultative Meeting was held in Baltimore MD USA in April 2009; at these periodic meetings decisions are made by consensus (not by vote) of all consultative member nations; by May 2009 there were 47 treaty member nations: 28 consultative and 19 non-consultative; consultative (decision-making) members include the seven nations that claim portions of Antarctica as national territory (some claims overlap) and 21 non-claimant nations; the US and Russia have reserved the right to make claims; the US does not recognize the claims of others; Antarctica is administered through meetings of the consultative member nations; decisions from these meetings are carried out by these member nations (with respect to their own nationals and operations) in accordance with their own national laws; the years in parentheses indicate when a consultative member-nation acceded to the Treaty and when it was accepted as a consultative member while no date indicates the country was an original 1959 treaty signatory; claimant nations are - Argentina Australia Chile France NZ Norway and the UK. Nonclaimant consultative nations are - Belgium Brazil (1975/1983) Bulgaria (1978/1998) China (1983/1985) Ecuador (1987/1990) Finland (1984/1989) Germany (1979/1981) India (1983/1983) Italy (1981/1987) Japan South Korea (1986/1989) Netherlands (1967/1990) Peru (1981/1989) Poland (1961/1977) Russia South Africa Spain (1982/1988) Sweden (1984/1988) Ukraine (1992/2004) Uruguay (1980/1985) and the US; non-consultative members with year of accession in parentheses are - Austria (1987) Belarus (2006) Canada (1988) Colombia (1989) Cuba (1984) Czech Republic (1962/1993) Denmark (1965) Estonia (2001) Greece (1987) Guatemala (1991) Hungary (1984) North Korea (1987) Monaco (2008) Papua New Guinea (1981) Romania (1971) Slovakia (1962/1993) Switzerland (1990) Turkey (1996) and Venezuela (1999); note - Czechoslovakia acceded to the Treaty in 1962 and separated into the Czech Republic and Slovakia in 1993; Article 1 - area to be used for peaceful purposes only; military activity such as weapons testing is prohibited but military personnel and equipment may be used for scientific research or any other peaceful purpose; Article 2 - freedom of scientific investigation and cooperation shall continue; Article 3 - free exchange of information and personnel cooperation with the UN and other international agencies; Article 4 - does not recognize dispute or establish territorial claims and no new claims shall be asserted while the treaty is in force; Article 5 - prohibits nuclear explosions or disposal of radioactive wastes; Article 6 - includes under the treaty all land and ice shelves south of 60 degrees 00 minutes south and reserves high seas rights; Article 7 - treaty-state observers have free access including aerial observation to any area and may inspect all stations installations and equipment; advance notice of all expeditions and of the introduction of military personnel must be given; Article 8 - allows for jurisdiction over observers and scientists by their own states; Article 9 - frequent consultative meetings take place among member nations; Article 10 - treaty states will discourage activities by any country in Antarctica that are contrary to the treaty; Article 11 - disputes to be settled peacefully by the parties concerned or ultimately by the ICJ; Articles 12 13 14 - deal with upholding interpreting and amending the treaty among involved nations; other agreements - some 200 recommendations adopted at treaty consultative meetings and ratified by governments include - Agreed Measures for Fauna and Flora (1964) which were later incorporated into the Environmental Protocol; Convention for the Conservation of Antarctic Seals (1972); Convention on the Conservation of Antarctic Marine Living Resources (1980); a mineral resources agreement was signed in 1988 but remains unratified; the Protocol on Environmental Protection to the Antarctic Treaty was signed 4 October 1991 and entered into force 14 January 1998; this agreement provides for the protection of the Antarctic environment through six specific annexes: 1) environmental impact assessment 2) conservation of Antarctic fauna and flora 3) waste disposal and waste management 4) prevention of marine pollution 5) area protection and management and 6) liability arising from environmental emergencies; it prohibits all activities relating to mineral resources except scientific research; a permanent Antarctic Treaty Secretariat was established in 2004 in Buenos Aires Argentina0
Bermudabananas vegetables citrus flowers; dairy products honeyparliamentary; self-governing territory67837
Bhutanrice corn root crops citrus foodgrains; dairy products eggsconstitutional monarchy691141
Barbadossugarcane vegetables cottonparliamentary democracy and a Commonwealth realm284589
Less than or equal to ‘le’ operator
le(population, '1000000')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available102
Anguillasmall quantities of tobacco vegetables; cattle raising14436
AntarcticaAntarctic Treaty Summary - the Antarctic Treaty signed on 1 December 1959 and entered into force on 23 June 1961 establishes the legal framework for the management of Antarctica; the 32nd Antarctic Treaty Consultative Meeting was held in Baltimore MD USA in April 2009; at these periodic meetings decisions are made by consensus (not by vote) of all consultative member nations; by May 2009 there were 47 treaty member nations: 28 consultative and 19 non-consultative; consultative (decision-making) members include the seven nations that claim portions of Antarctica as national territory (some claims overlap) and 21 non-claimant nations; the US and Russia have reserved the right to make claims; the US does not recognize the claims of others; Antarctica is administered through meetings of the consultative member nations; decisions from these meetings are carried out by these member nations (with respect to their own nationals and operations) in accordance with their own national laws; the years in parentheses indicate when a consultative member-nation acceded to the Treaty and when it was accepted as a consultative member while no date indicates the country was an original 1959 treaty signatory; claimant nations are - Argentina Australia Chile France NZ Norway and the UK. Nonclaimant consultative nations are - Belgium Brazil (1975/1983) Bulgaria (1978/1998) China (1983/1985) Ecuador (1987/1990) Finland (1984/1989) Germany (1979/1981) India (1983/1983) Italy (1981/1987) Japan South Korea (1986/1989) Netherlands (1967/1990) Peru (1981/1989) Poland (1961/1977) Russia South Africa Spain (1982/1988) Sweden (1984/1988) Ukraine (1992/2004) Uruguay (1980/1985) and the US; non-consultative members with year of accession in parentheses are - Austria (1987) Belarus (2006) Canada (1988) Colombia (1989) Cuba (1984) Czech Republic (1962/1993) Denmark (1965) Estonia (2001) Greece (1987) Guatemala (1991) Hungary (1984) North Korea (1987) Monaco (2008) Papua New Guinea (1981) Romania (1971) Slovakia (1962/1993) Switzerland (1990) Turkey (1996) and Venezuela (1999); note - Czechoslovakia acceded to the Treaty in 1962 and separated into the Czech Republic and Slovakia in 1993; Article 1 - area to be used for peaceful purposes only; military activity such as weapons testing is prohibited but military personnel and equipment may be used for scientific research or any other peaceful purpose; Article 2 - freedom of scientific investigation and cooperation shall continue; Article 3 - free exchange of information and personnel cooperation with the UN and other international agencies; Article 4 - does not recognize dispute or establish territorial claims and no new claims shall be asserted while the treaty is in force; Article 5 - prohibits nuclear explosions or disposal of radioactive wastes; Article 6 - includes under the treaty all land and ice shelves south of 60 degrees 00 minutes south and reserves high seas rights; Article 7 - treaty-state observers have free access including aerial observation to any area and may inspect all stations installations and equipment; advance notice of all expeditions and of the introduction of military personnel must be given; Article 8 - allows for jurisdiction over observers and scientists by their own states; Article 9 - frequent consultative meetings take place among member nations; Article 10 - treaty states will discourage activities by any country in Antarctica that are contrary to the treaty; Article 11 - disputes to be settled peacefully by the parties concerned or ultimately by the ICJ; Articles 12 13 14 - deal with upholding interpreting and amending the treaty among involved nations; other agreements - some 200 recommendations adopted at treaty consultative meetings and ratified by governments include - Agreed Measures for Fauna and Flora (1964) which were later incorporated into the Environmental Protocol; Convention for the Conservation of Antarctic Seals (1972); Convention on the Conservation of Antarctic Marine Living Resources (1980); a mineral resources agreement was signed in 1988 but remains unratified; the Protocol on Environmental Protection to the Antarctic Treaty was signed 4 October 1991 and entered into force 14 January 1998; this agreement provides for the protection of the Antarctic environment through six specific annexes: 1) environmental impact assessment 2) conservation of Antarctic fauna and flora 3) waste disposal and waste management 4) prevention of marine pollution 5) area protection and management and 6) liability arising from environmental emergencies; it prohibits all activities relating to mineral resources except scientific research; a permanent Antarctic Treaty Secretariat was established in 2004 in Buenos Aires Argentina0
Bermudabananas vegetables citrus flowers; dairy products honeyparliamentary; self-governing territory67837
Bhutanrice corn root crops citrus foodgrains; dairy products eggsconstitutional monarchy691141
Barbadossugarcane vegetables cottonparliamentary democracy and a Commonwealth realm284589
Phrase search passing multiple words as single token
phraseMatch(governmenttype, 'federal parliamentary democracy')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available2
Australiawheat barley sugarcane fruits cattle sheep poultryfederal parliamentary democracy and a Commonwealth realm21262641
Belgiumsugar beets fresh vegetables fruits grain tobacco; beef veal pork milkfederal parliamentary democracy under a constitutional monarchy10414336
Phrase search passing multiple words as multiple tokens
phraseMatch(governmenttype, 'federal', 'parliamentary', 'democracy')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available83
Australiawheat barley sugarcane fruits cattle sheep poultryfederal parliamentary democracy and a Commonwealth realm21262641
Belgiumsugar beets fresh vegetables fruits grain tobacco; beef veal pork milkfederal parliamentary democracy under a constitutional monarchy10414336
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Arubaaloes; livestock; fishparliamentary democracy103065
Bulgariavegetables fruits tobacco wine wheat barley sunflowers sugar beets; livestockparliamentary democracy7204687
Phrase search with slop of 4
phraseMatch(governmenttype, 'parliamentary monarchy', -slop '4')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available6
Spaingrain vegetables olives wine grapes sugar beets citrus; beef pork poultry dairy products; fishparliamentary monarchy40525002
Lesothocorn wheat pulses sorghum barley; livestockparliamentary constitutional monarchy2130819
Japanrice sugar beets vegetables fruit; pork poultry dairy products eggs; fisha parliamentary government with a constitutional monarchy127078679
Greenlandforage crops garden and greenhouse vegetables; sheep reindeer; fishparliamentary democracy within a constitutional monarchy57600
Belgiumsugar beets fresh vegetables fruits grain tobacco; beef veal pork milkfederal parliamentary democracy under a constitutional monarchy10414336
Phrase search with slop of 4
phraseMatch(governmenttype, 'monarchy parliamentary', -slop '4')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available3
Spaingrain vegetables olives wine grapes sugar beets citrus; beef pork poultry dairy products; fishparliamentary monarchy40525002
Lesothocorn wheat pulses sorghum barley; livestockparliamentary constitutional monarchy2130819
Antigua and Barbudacotton fruits vegetables bananas coconuts cucumbers mangoes sugarcane; livestockconstitutional monarchy with a parliamentary system of government and a Commonwealth realm85632
Match both phrases containing ‘parliamentary democracy’ and ‘parliamentary system’
phraseMatch(governmenttype, 'parliamentary', 'democracy system', -multiphrase)
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available43
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Arubaaloes; livestock; fishparliamentary democracy103065
Bulgariavegetables fruits tobacco wine wheat barley sunflowers sugar beets; livestockparliamentary democracy7204687
Czech Republicwheat potatoes sugar beets hops fruit; pigs poultryparliamentary democracy10211904
Dominicabananas citrus mangoes root crops coconuts cocoa; forest and fishery potential not exploitedparliamentary democracy72660
Match phrases containing ‘parliamentary democracy’, ‘parliamentary system’ and ‘parliamentary constitutional’
phraseMatch(governmenttype, 'parliamentary', 'democracy system constitutional', -multiphrase)
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available44
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Arubaaloes; livestock; fishparliamentary democracy103065
Bulgariavegetables fruits tobacco wine wheat barley sunflowers sugar beets; livestockparliamentary democracy7204687
Czech Republicwheat potatoes sugar beets hops fruit; pigs poultryparliamentary democracy10211904
Dominicabananas citrus mangoes root crops coconuts cocoa; forest and fishery potential not exploitedparliamentary democracy72660
Match phrases containing ‘parliamentary monarchy’ and ‘constitutional monarchy’
phraseMatch(governmenttype, 'constitutional parliamentary', 'monarchy', -multiphrase)
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available22
Bhutanrice corn root crops citrus foodgrains; dairy products eggsconstitutional monarchy691141
Bahrainfruit vegetables; poultry dairy products; shrimp fishconstitutional monarchy727785
Denmarkbarley wheat potatoes sugar beets; pork dairy products; fishconstitutional monarchy5500510
Liechtensteinwheat barley corn potatoes; livestock dairy productsconstitutional monarchy34761
Jordancitrus tomatoes cucumbers olives; sheep poultry stone fruits strawberries dairyconstitutional monarchy6342948
Simple regex match
regex(agriproducts, '[ms]ilk')
countrynameagriproductsgovernmenttypepopulation
*For brevity only up to 5 results are displayed here.Total available28
Bangladeshrice jute tea wheat sugarcane potatoes tobacco pulses oilseeds spices fruit; beef milk poultryparliamentary democracy156050883
Belarusgrain potatoes vegetables sugar beets flax; beef milkrepublic in name although in fact a dictatorship9648533
Belgiumsugar beets fresh vegetables fruits grain tobacco; beef veal pork milkfederal parliamentary democracy under a constitutional monarchy10414336
Burundicoffee cotton tea corn sorghum sweet potatoes bananas manioc (tapioca); beef milk hidesrepublic8988091
Cambodiarice rubber corn vegetables cashews tapioca silkmultiparty democracy under a constitutional monarchy14494293