Comments: The paper has been withdrawn by the author since it is replaced by a majorly corrected and upgraded version, see arXiv:2305.00810, where we corrected some errors and upgraded the results by establishing the shuffle algebra realization of integral forms of quantum loop algebras and Yangians in type B_n and G_2
We define a filtration of Feigin-Odesskii's shuffle algebras of type B_n and G_2 using specialization maps, generalizing the results in type A_n case given by Negut and Tsymbaliuk. These filtrations are compatible with a class of PBW type bases for the quantum current algebras of type B_n and G_2.