fix java search example