Re: UpdateProcessor and copyField

2011-02-24 Thread Jan Høydahl
Hi, I'd also like a more powerful/generic CopyField. Today always copies after UpdateChain and before analysis. Refactoring it as an UP (using SOLR-2370 to include it as part of default chain) would let us specify before UpdateChain in addition. But how could we get it to copy after analysis?

Re: UpdateProcessor and copyField

2011-02-23 Thread Chris Hostetter
: > Maybe copy fields should be refactored to happen in a new, core, : update processor, so there is nothing special/awkward about them?  It : seems they fit as part of what an update processor is all about, : augmenting/modifying incoming documents. : : Seems reasonable. : By default, the cop

Re: UpdateProcessor and copyField

2011-02-23 Thread Yonik Seeley
On Wed, Feb 23, 2011 at 5:09 AM, Erik Hatcher wrote: > Maybe copy fields should be refactored to happen in a new, core, update > processor, so there is nothing special/awkward about them?  It seems they fit > as part of what an update processor is all about, augmenting/modifying > incoming docu

Re: UpdateProcessor and copyField

2011-02-23 Thread Teruhiko Kurosaka
Jan, So you are implying that the fields made by copyField are not processed by UpdateProcessors, right? Erik, Logically this makes sense but then copyField operations must move to solrconfig.xml? Editing solrconfig.xml is more challenging than schema.xml, I feel. Kuro On 2/23/11 2:09 AM, "Erik

Re: UpdateProcessor and copyField

2011-02-23 Thread Erik Hatcher
Maybe copy fields should be refactored to happen in a new, core, update processor, so there is nothing special/awkward about them? It seems they fit as part of what an update processor is all about, augmenting/modifying incoming documents. Erik On Feb 23, 2011, at 04:40 , Jan Høydahl

Re: UpdateProcessor and copyField

2011-02-23 Thread Jan Høydahl
This is how I've got it: A document first passes through the UpdateChain (processors), which is document centric. Then copyFields are processed And finally the analysis in fieldTypes are processed So you cannot use before UpdateProcessors nor after Analysis :( -- Jan Høydahl, search solution a

Re: UpdateProcessor and copyField

2011-02-23 Thread Markus Jelsma
You are right, i misread. Fields a copied first, then analyzed and then behave like other fields and pass the same way through the update processor. Cheers, > Markus, > > I searched but I couldn't find a definite answer, so I posted this > question. > The article you quoted talks about implemen

Re: UpdateProcessor and copyField

2011-02-22 Thread Teruhiko Kurosaka
Markus, I searched but I couldn't find a definite answer, so I posted this question. The article you quoted talks about implementing a copyField-like operation using UpdateProcessor. It doesn't talk about relationship between the copyField operation proper and UpdateProcessors. Kuro On 2/22/11

Re: UpdateProcessor and copyField

2011-02-22 Thread Markus Jelsma
Yes. But did you actually search the mailing list or Solr's wiki? I guess not. Here it is: http://wiki.apache.org/solr/UpdateRequestProcessor > Can fields created by copyField instructions be processed by > UpdateProcessors? > Or only raw input fields can? > > So far my experiment is suggesting

UpdateProcessor and copyField

2011-02-22 Thread Teruhiko Kurosaka
Can fields created by copyField instructions be processed by UpdateProcessors? Or only raw input fields can? So far my experiment is suggesting the latter. T. "Kuro" Kurosaka