It looks like I've to contact <updateHandler class="solr.DirectUpdateHandler2"> with an AddUpdateCommand .
On Sat, May 14, 2011 at 12:36 PM, Gabriele Kahlout <gabri...@mysimpatico.com > wrote: > Hello, > > I'm trying to add an extra field to the schema.xml that is only stored, but > with nutch not knowing about it, I don't know how to tell Solr of its value > for each document. I'd like to plugin the computation, something like is > done with Similarity, but I'm not sure how to do that. > > From SOLR-1566 <https://issues.apache.org/jira/browse/SOLR-1566>: > "Currently it is not possible for components to add fields to outgoing > documents which are not in the the stored fields of the document." > That's my next problem, but let's say I'm okay storing the field, how do I > do that? > > BTW, I tried hacking the code to add the fields a response-time to the > defaultFields per document, but since it always has a cached document it'll > not add them (I could still force the adding, but I'm not sure what else > will break as a result). > > -- > Regards, > K. Gabriele > > --- unchanged since 20/9/10 --- > P.S. If the subject contains "[LON]" or the addressee acknowledges the > receipt within 48 hours then I don't resend the email. > subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ > time(x) < Now + 48h) ⇒ ¬resend(I, this). > > If an email is sent by a sender that is not a trusted contact or the email > does not contain a valid code then the email is not received. A valid code > starts with a hyphen and ends with "X". > ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ > L(-[a-z]+[0-9]X)). > > -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the email. subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x) < Now + 48h) ⇒ ¬resend(I, this). If an email is sent by a sender that is not a trusted contact or the email does not contain a valid code then the email is not received. A valid code starts with a hyphen and ends with "X". ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ L(-[a-z]+[0-9]X)).