A cruise ship that docked in San Diego early Thursday will undergo a “full barrier sanitation cleaning” after 22 passengers and two crew members came down with gastrointestinal symptoms, a cruise company spokesman said.

The Azamara Quest arrived in San Diego as scheduled early Thursday. Four people on board had reported being ill within the past 48 hours but the other passengers and crew had recovered, said Owen Torres, a spokesman for Royal Caribbean Cruises, the parent company of Azamara Club Cruises.

The Centers for Disease control said there were 663 passengers onboard the ship and a crew of 458. According to the website CruiseMapper, the ship was on a 14-night 15-day one-way cruise from Costa Rica to San Diego.

The ship was to be fully cleaned before it departed on its next trip. Boarding was to begin shortly after noon.

According the Centers for Disease Control, stool specimens from passengers and crew members who were sick were collected and will be tested. In addition, officials with the CDC’s vessel sanitation program will continue to monitor the ship into its next voyage.

“We encouraged our guests and crew to wash their hands often, which health experts recommend as the best defense against stomach viruses,” Torres said.