A young man accused of seeking anti-Semitic material including guides on committing terrorist attacks had been on police radar for months, a judge has heard.