It is very easy to create indexes using the AbstractIndexCreationTask
class. Basically, you will create a new class for the index that will inherit from the AbstractIndexCreationTask
class and define the document object type. The index you will create requires at least one map function to be defined. You can define this function in the class constructor directly instead of creating a new instance of the IndexDefinitionBuilder
class as we did while using the PutIndex()
method.
Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
France
Germany
Great Britain
Greece
Hungary
India
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Russia
Singapore
Slovakia
Slovenia
South Africa
South Korea
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United States