[ 
https://issues.apache.org/jira/browse/NUTCH-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467072#comment-13467072
 ] 

kiran edited comment on NUTCH-1467 at 10/2/12 5:42 AM:
-------------------------------------------------------

These 4 files will work as patch to the parse-metatags plugin. They will save 
the multiValues in an array and then send it to Solr. HTMLMetaProcessor patch 
need to be applied in parse-html and parse-tika plugins. HTMLMetaTags patch 
should be in the 'src/java/parse'. HTMLMetadataIndexer in index-metadata plugin.

This is an improvement to the last patch i wrote where i used a separator to 
save the mutiplevalues of the same tag.

I am working on writing an junit test.

These patches send the data to Solr as an array and it works all fine as 
expected but when i run the command 'bin/nutch indexchecker' it wont print the 
values as expected. I did not work on that yet.

Does anyone know why this plugin is not included in nutch-2.0 ? 

Should this plugin need to be rewritten to be included in nutch-2.0? I did try 
few things but the classes are not getting compiled.

Many Thanks for the help.
                
      was (Author: kiranch):
    These 4 files will work as patch to the parse-metatags plugin. They will 
save the multiValues in an array and then send it to Solr. HTMLMetaProcessor 
patch need to be applied in parse-html and parse-tika plugins. HTMLMetaTags 
patch should be in the 'src/java/parse'. HTMLMetadataIndexer in index-metadata 
plugin.

This is an improvement to the last patch i wrote where i used a separator to 
save the mutiplevalues of the same tag.

I am working on writing an junit test.

Does anyone know why this plugin is not included in nutch-2.0 ? 

Should this plugin need to be rewritten to be included in nutch-2.0? I did try 
few things but the classes are not getting compiled.

Many Thanks for the help.
                  
> nutch 1.5.1 not able to parse mutliValued metatags
> --------------------------------------------------
>
>                 Key: NUTCH-1467
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1467
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>            Reporter: kiran
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: Patch_HTMLMetaProcessor.patch, Patch_HTMLMetaTags.patch, 
> Patch_MetadataIndexer.patch, Patch_MetaTagsParser.patch, patch.txt
>
>
> Hi,
> I have been able to parse metatags in an html page using 
> http://wiki.apache.org/nutch/IndexMetatags. It does not work quite well when 
> there are two metatags with same name but two different contents. 
> Does anyone encounter this kind of issue ?  
> Are there any changes that need to be made to the config files to make it 
> work ?
> When there are two tags with same name and different content, it takes the 
> value of the later tag and saves it rather than creating a multiValue field.
> Edit: I have attached the patch for the file and it is provided by DLA 
> (Digital Library and Archives) http://scholar.lib.vt.edu/ of Virginia Tech. 
> Many Thanks,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to