Hi Lewis,
My solrindex-mapping contains
<mapping>
<!-- Simple mapping of fields created by Nutch IndexingFilters
to fields defined (and expected) in Solr schema.xml.
Any fields in NutchDocument that match a name defined
in field/@source will be renamed to the corresponding
field/@dest.
Additionally, if a field name (before mapping) matches
a copyField/@source then its values will be copied to
the corresponding copyField/@dest.
uniqueKey has the same meaning as in Solr schema.xml
and defaults to "id" if not defined.
-->
<fields>
<field dest="content" source="content"/>
<field dest="site" source="site"/>
<field dest="title" source="title"/>
<field dest="host" source="host"/>
<field dest="segment" source="segment"/>
<field dest="boost" source="boost"/>
<field dest="digest" source="digest"/>
<field dest="tstamp" source="tstamp"/>
<field dest="publishedDate" source="publishedDate"/>
<field dest="id" source="url"/>
<copyField source="url" dest="url"/>
</fields>
<uniqueKey>id</uniqueKey>
</mapping>
Do I need to edit any source code of feed plugin to make available
this publishedDate.
Thanks
Shameema
On Thu, Jun 7, 2012 at 4:32 PM, Lewis John Mcgibbney
<[email protected]> wrote:
> Best way to test this is by doing ad-hoc parsechecker fetches. Also
> try including this value in your solr-mapping file.
>
> On Thu, Jun 7, 2012 at 11:41 AM, Shameema Umer <[email protected]> wrote:
>> In my schema there are certain fields used for feed plugin.
>>
>> <!-- fields for feed plugin (tag is also used by
>> microformats-reltag)-->
>> <field name="author" type="string" stored="true" indexed="true"/>
>> <field name="tag" type="string" stored="true" indexed="true"
>> multiValued="true"/>
>> <field name="feed" type="string" stored="true" indexed="true"/>
>> <field name="publishedDate" type="date" stored="true"
>> indexed="true"/>
>> <field name="updatedDate" type="date" stored="true"
>> indexed="true"/>
>>
>> I have included the feed plugin in nutch site xml. The feed file is fetched
>> and parsed , also the links in it are working properly. But I cannot get
>> the publishedDate working.
>> I cannot retrieve the publishedDate or sort by it.
>>
>> Please help.
>
>
>
> --
> Lewis