Some 30 young people targeted officers and vehicles during the seizure of drugs at a house in the city's Carnhill area, at about 18:00 BST on Sunday.
The PSNI found suspected Class A and B drugs, prescription medicines and drugs' paraphernalia, as well as a number of electronic storage devices.
About 200 bystanders watched the operation.
Det Insp Tom McClure said the investigation was ongoing.
"We are committed to tackling illegal drugs and keeping communities safe," he added.
The PSNI have appealed for information.
Police on a drugs raid in Londonderry have been attacked by a crowd of stone-throwing youths.