#NEWLINE# def handle_noargs( self , **options ) : #NEWLINE# #INDENT# self . user = install_sample_user ( ) #NEWLINE# self . fs = cluster . get_hdfs ( ) #NEWLINE# self . searcher = controller . CollectionManagerController ( self . user ) #NEWLINE# LOG . info ( _ ( 'Installing twitter collection' ) ) #NEWLINE# path = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '../../../../../../../apps/search/examples/collections/solr_configs_twitter_demo/index_data.csv' ) ) #NEWLINE# self . _setup_collection_from_csv ( { #NEWLINE# #INDENT# 'name' : 'twitter_demo' , #NEWLINE# 'fields' : self . _parse_fields ( path ) , #NEWLINE# 'uniqueKeyField' : 'id' , #NEWLINE# 'df' : 'text' , #NEWLINE# #UNINDENT# } , path ) #NEWLINE# LOG . info ( _ ( 'Twitter collection successfully installed' ) ) #NEWLINE# LOG . info ( _ ( 'Installing yelp collection' ) ) #NEWLINE# path = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '../../../../../../../apps/search/examples/collections/solr_configs_yelp_demo/index_data.csv' ) ) #NEWLINE# self . _setup_collection_from_csv ( { #NEWLINE# #INDENT# 'name' : 'yelp_demo' , #NEWLINE# 'fields' : self . _parse_fields ( path ) , #NEWLINE# 'uniqueKeyField' : 'id' , #NEWLINE# 'df' : 'text' , #NEWLINE# #UNINDENT# } , path ) #NEWLINE# LOG . info ( _ ( 'Yelp collection successfully installed' ) ) #NEWLINE# LOG . info ( _ ( 'Installing logs collection' ) ) #NEWLINE# path = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '../../../../../../../apps/search/examples/collections/solr_configs_log_analytics_demo/index_data.csv' ) ) #NEWLINE# self . _setup_collection_from_csv ( { #NEWLINE# #INDENT# 'name' : 'log_analytics_demo' , #NEWLINE# 'fields' : self . _parse_fields ( path , fieldtypes = { #NEWLINE# #INDENT# 'region_code' : 'string' , #NEWLINE# 'referer' : 'string' , #NEWLINE# #UNINDENT# } ) , #NEWLINE# 'uniqueKeyField' : 'id' , #NEWLINE# 'df' : 'record' , #NEWLINE# #UNINDENT# } , path ) #NEWLINE# LOG . info ( _ ( 'Logs collection successfully installed' ) )