Re: Update field value in the document based on value of another field in the document

2011-08-22 Thread Chris Hostetter
: Now that I have set it up using UpdateProcessorChain, I am running into null : exeception. are you sure you pasted the correct stack trace? that's not a null (pointer) exception it's an AbstractMethodError... : Aug 20, 2011 10:48:43 AM org.apache.solr.common.SolrException log : SEVERE: java.

Re: Update field value in the document based on value of another field in the document

2011-08-21 Thread Erick Erickson
Publishing stack traces does no good unless you also tell us what version of Solr you are using. The source-file numbers do move around between versions Also, what line in your code is at the root of this chain? The very first thing I'd do is just comment out your custom code (i.e. just ahve t

Re: Update field value in the document based on value of another field in the document

2011-08-20 Thread bhawna singh
Now that I have set it up using UpdateProcessorChain, I am running into null exeception. Here is what I have- In SolrConfig.xml mychain Here is my java code- package mysolr; import java.io.IOException; import org.apache.solr.common.SolrInp

Re: Update field value in the document based on value of another field in the document

2011-08-18 Thread simon
An UpdateRequestProcessor would do the trick. Look at the (rather minimal) documentation and code example in http://wiki.apache.org/solr/UpdateRequestProcessor -Simon On Thu, Aug 18, 2011 at 4:15 PM, bhawna singh wrote: > Hi All, > I have a requirement to update a certain field value depending

Update field value in the document based on value of another field in the document

2011-08-18 Thread bhawna singh
Hi All, I have a requirement to update a certain field value depending on the field value of another field. To elaborate- I have a field called 'popularity' and a field called 'URL'. I need to assign popularity value depending on the domain (URL) ( I have the popularity and domain mapping in a text