// IndexOmim - build the index
build the index
// IndexOmim - build the index
func IndexOmim() error {
	var err error
	fmt.Println("Indexing omim...")
	index, err = indexing.InitIndex("omim-search.bleve")
	if err != nil {
		return fmt.Errorf("Error while initing omim index:\n	Error ==> %v", err)
	}
	err = indexOmim()
	if err != nil {
		return fmt.Errorf("Error while indexing omim's csv:\n	Error ==> %v", err)
	}
	fmt.Println("Omim index done")
	return nil
}
func IndexOmim ( ) error { var err error fmt . Println ( " " ) index , err = indexing . InitIndex ( " " ) if err != nil { return fmt . Errorf ( " \n " , err ) } err = indexOmim ( ) if err != nil { return fmt . Errorf ( " \n " , err ) } fmt . Println ( " " ) return nil }
build the index
build the index