You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Syed Ahmed <sy...@googlemail.com> on 2008/03/13 10:11:14 UTC
multi-valued dc fields.
hello,
I am posting this message in the list as many might have missed it. The indexer
and parser are working for extraction of dc metadata from a HTML page.
I have also written a query filter. now the problem i am having is if there
are multiple values for a node for example, the dc.creator metadata field,
if there are many authors of a document, then only the last value is being
stored in the index. Another Example is the dc.language, if the document is
partly in english and in german, then, this node has two values, but
only one value
of the attribute(node) is stored in the index.
how do i get all values of a node appeneded in the index for this field and
searched for?
Regards
Re: multi-valued dc fields.
Posted by Andrzej Bialecki <ab...@getopt.org>.
Syed Ahmed wrote:
> hello,
> I am posting this message in the list as many might have missed it. The indexer
> and parser are working for extraction of dc metadata from a HTML page.
> I have also written a query filter. now the problem i am having is if there
> are multiple values for a node for example, the dc.creator metadata field,
> if there are many authors of a document, then only the last value is being
> stored in the index. Another Example is the dc.language, if the document is
> partly in english and in german, then, this node has two values, but
> only one value
> of the attribute(node) is stored in the index.
> how do i get all values of a node appeneded in the index for this field and
> searched for?
> Regards
>
Lucene indexes support fields with multiple values. It's a limitation in
Nutch - indexes are not accessed directly by the frontend application,
instead they use a simplified interface. For performance reasons this
interface (HitDetails) supports only single values per field.
You could either modify this interface (and a bunch of other places in
Nutch), or you could store multiple values in a single field using some
kind of separator.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com