You can apply an unspecified bond type to your substructure query. In the search, the unspecified bond sites will be matched by any type of bond.
Click the Unspecified Bond tool
in the Bonds palette.
Click the bonds in the query that you want to allow to vary.
Learn More
Drawing and Editing Structures