(a) Fees Allowable. In an action for the foreclosure of a mortgage or tax certificate or for partition and sale of realty, the court or the clerk may, as a matter of discretion, tax as part of the taxable costs all legal fees and reasonable charges necessarily paid or incurred in procuring searches relative to the title of the subject premises, provided that the minimum fee shall be $75 and the maximum fee shall be $500. If, however, 1% of the amount found due plaintiff is more than $75 and less than $500, such 1% shall be the maximum fee. In tax foreclosure actions brought to foreclose tax sale certificates on more than one parcel, the fees herein prescribed shall apply to each separate parcel, except, however, that in in rem tax foreclosure actions pursuant to R. 4:64-7, the fee shall be $75 for each separate parcel, and the maximum fee herein prescribed shall not apply. The court or the clerk may also authorize inclusion of all legal fees and charges necessarily incurred for searches required for unpaid taxes or municipal liens and for searches required to enable the officer making public sale to insert in the notices, advertisements and conditions of sale, a description of the estate or interest to be sold and the defects in title and liens or encumbrances thereon, as authorized by law.
(b) Affidavit of Fees; Limitations. Fees for searches shall not be taxed, unless prior to the taxing thereof the plaintiff or plaintiff's attorney has filed an affidavit setting forth an itemized statement of the fees and charges for which taxation is asked, and including only such fees and charges as were actually and necessarily paid or incurred for the purpose of the action. Without court order no search fees shall be certified or taxed for searches respecting the state ofthe title or encumbrances thereon prior to the commencement of the co-tenancy in partition actions, or prior to the date of the mortgage in foreclosure actions. In tax foreclosures where the plaintiff is other than a municipality a notice similar to that required by R. 4:42-9(a)(5) shall be sent where search fees are to be applied for.