private static void addBeerToSearchIndex(Beer beer) {
	    Document.Builder docBuilder = Document.newBuilder();
	    /*** Id ***/
	    Long beerId = beer.getId();
	    docBuilder.addField(Field.newBuilder().setName("id").setText(Long.toString(beerId)));
	    
	    /*** Name ***/
	    String beerName = beer.getBeerName(); 
	    String docBuilderName = "";
	    if (beerName != null) {
	    	docBuilderName = beerName;
	    }
	    docBuilder.addField(Field.newBuilder().setName("name").setText(docBuilderName));
	    /*** Name ***/
	    
	    /*** Country ***/
	    String beerCountry = beer.getCountry();
	    String docBuilderCountry = "";
	    if (beerCountry != null) {
	    	docBuilderCountry = beerCountry;
	    }
	    docBuilder.addField(Field.newBuilder().setName("country").setText(docBuilderCountry));
	    /*** Country ***/
	    
	    /*** Kind Of Beer ***/
	    String beerKindOfBeer = beer.getKindOfBeer();
	    String docBuilderKindOfBeer = "";
	    if (beerKindOfBeer != null) {
	    	docBuilderKindOfBeer = beerKindOfBeer;
	    }
	    docBuilder.addField(Field.newBuilder().setName("kindOfBeer").setText(docBuilderKindOfBeer));
	    /*** Kind Of Beer ***/
	    
	    /*** Latitude ***/
	    Double beerLatitude = beer.getLatitude();
	    Double docBulderLatitude = (double) 0;
	    if (beerLatitude != null) {
	    	docBulderLatitude = beerLatitude;
	    }
	    docBuilder.addField(Field.newBuilder().setName("latitude").setNumber(docBulderLatitude));
	    /*** Latitude ***/ 
	    
	    /*** Longitude ***/
	    Double beerLongitude = beer.getLongitude();
	    Double docBulderLongitude = (double) 0;
	    if (beerLongitude != null) {
	    	docBulderLongitude = beerLongitude;
	    }
	    docBuilder.addField(Field.newBuilder().setName("longitude").setNumber(docBulderLongitude));
	    /*** Longitude ***/ 
	    
	    /*** Description ***/
	    String beerDescription = beer.getDescription();
	    String docBulderDescription = "";
	    if (beerDescription != null) {
	    	docBulderDescription = beerDescription;
	    }
	    docBuilder.addField(Field.newBuilder().setName("description").setText(docBulderDescription));
	    /*** Description ***/
	    
	    /*** Score ***/
	    Long beerScore = beer.getScore();
	    Long docBuilderScore = (long) 0;
	    if (beerScore != null) {
	    	docBuilderScore = beerScore;
	    }
	    docBuilder.addField(Field.newBuilder().setName("score").setNumber(docBuilderScore));
	    /*** Score ***/
	    
	    /*** Number of Drinks ***/
	    Long beerNumberOfDrinks = beer.getNumberOfDrinks();
	    Long docBuilderNumberOfDrinks = (long) 0;
	    if (beerNumberOfDrinks != null) {
	    	docBuilderNumberOfDrinks = beerNumberOfDrinks;
	    }
	    docBuilder.addField(Field.newBuilder().setName("numberOfDrinks").setNumber(docBuilderNumberOfDrinks));
	    /*** Number of Drinks ***/
	    
	    docBuilder.addField(Field.newBuilder().setName("published").setDate(new Date()));
	    
	    docBuilder.setId(Long.toString(beerId));
	    
	    Document document = docBuilder.build();
	    INDEX.put(document);
	}