Search by West Yorkshire Police leads to court appearance