// parse the url to get the host name
URL url;
try {
url = new URL(fo.getUrl().toString());
} catch (MalformedURLException e) {
throw new IndexingException(e);
}
// add host as un-stored, indexed and un-tokenized
doc.add(new Field("site", url.getHost(), false, true, false));