1. The outlays element of the legal bill (search fees and registration fees) should be fully refundable, as the outlays are not now being incurred.
2. On the professional fee, there are two factors; On the one hand, the closing, stamping, registration and ancillary work will not now be done - which would be up to maybe 40\50% of the total work. On the other hand, if the transaction was aborted due to building problems, then it is highly likely that the solicitor has had significant extra work already, quite possibly to the extent that the original fee actually represents poor remuneration for the work done.
On balance I rather suspect that there is no refund due, but of course it depends on what you agreed with your solicitor.
If there was no explicit agreement on the point, I would be inclined to the view that the solicitor is entitled to hold on to the money IF there was extra work up to the stage when deal was aborted, but if there was no extra work for solicitor, some refund should be paid.
Oops - posted this without seeing prior post by MF1