You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Claudio Martella <cl...@tis.bz.it> on 2010/08/03 11:40:25 UTC

static field

Hi,

I'm crawling multiple intranet sites and I am sending these crawls to my
solr search server. i'd like to keep track of where each document
belongs. therefore i'd like to tell nutch to add a static field (it
depends on the nutch configuration, not on the document being
crawled/parsed) to the document it's sending to solr.

In my solr schema i have a field like (pseudo-schema):

<type> mail | document | web | tweet | wiki </type>

Every type doesn't mutate and just depends on the instance of nutch i'm
running (the seed i'm crawling), so there's no logic behind the type to set.


What is the smartest way to get this?


TIA

/CM

-- 
Claudio Martella
Digital Technologies
Unit Research & Development - Analyst

TIS innovation park
Via Siemens 19 | Siemensstr. 19
39100 Bolzano | 39100 Bozen
Tel. +39 0471 068 123
Fax  +39 0471 068 129
claudio.martella@tis.bz.it http://www.tis.bz.it

Short information regarding use of personal data. According to Section 13 of Italian Legislative Decree no. 196 of 30 June 2003, we inform you that we process your personal data in order to fulfil contractual and fiscal obligations and also to send you information regarding our services and events. Your personal data are processed with and without electronic means and by respecting data subjects' rights, fundamental freedoms and dignity, particularly with regard to confidentiality, personal identity and the right to personal data protection. At any time and without formalities you can write an e-mail to privacy@tis.bz.it in order to object the processing of your personal data for the purpose of sending advertising materials and also to exercise the right to access personal data and other rights referred to in Section 7 of Decree 196/2003. The data controller is TIS Techno Innovation Alto Adige, Siemens Street n. 19, Bolzano. You can find the complete information on the web site www.tis.bz.it.