public IndexDefinition createIndexDefinition ( ) { if ( conventions == null ) { conventions = new DocumentConventions ( ) ; } IndexDefinitionBuilder indexDefinitionBuilder = new IndexDefinitionBuilder ( getIndexName ( ) ) ; indexDefinitionBuilder . setIndexesStrings ( indexesStrings ) ; indexDefinitionBuilder . setAnalyzersStrings ( analyzersStrings ) ; indexDefinitionBuilder . setMap ( map ) ; indexDefinitionBuilder . setReduce ( reduce ) ; indexDefinitionBuilder . setStoresStrings ( storesStrings ) ; indexDefinitionBuilder . setSuggestionsOptions ( indexSuggestions ) ; indexDefinitionBuilder . setTermVectorsStrings ( termVectorsStrings ) ; indexDefinitionBuilder . setSpatialIndexesStrings ( spatialOptionsStrings ) ; indexDefinitionBuilder . setOutputReduceToCollection ( outputReduceToCollection ) ; indexDefinitionBuilder . setAdditionalSources ( getAdditionalSources ( ) ) ; return indexDefinitionBuilder . toIndexDefinition ( conventions ) ; }
Creates the index definition .