bupo.Jung wrote:
>
> I think you have to get the longitude and latitude first when parsing the
> page and save the metadata.
>
And there I have a problem. Assume I have found the values latitude=111 and
longitude=222 during
parsing the page.
Where do I put that metadata to get it in the indexfiler?
I implemented public ParseResult filter(Content content, ParseResult
parseResult, HTMLMetaTags metaTags, DocumentFragment doc)
and try to save it like this:
Parse parse = parseResult.get(content.getUrl());
Metadata metadata = parse.getData().getParseMeta();
metadata.add("geo-latitude","111");
metadata.add("geo-longitude","222");
Now in my Implementation of IndexingFilter
within the method
public NutchDocument filter(NutchDocument doc, Parse parse, Text
url,CrawlDatum datum, Inlinks inlinks)
I try the following
parse.getData().getParseMeta().get("geo-longitude")
which always returns null.
Any advice on how to pass data from parse to indexing correctly?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Nutch-Plugin-add-several-fields-at-once-tp2981579p2995763.html
Sent from the Nutch - User mailing list archive at Nabble.com.