RE: Transformation on a numeric field

2014-04-16 Thread Chris Hostetter
: Anyone knows why we can`t have an analysis chain on a numeric field ? : Looks to me like it would be very useful to be able to : manipulate/transform a value without an external resources. Analysis only affects *indexed* terms -- it has no impact on the stored values (or things like docValue

RE: Transformation on a numeric field

2014-04-16 Thread Jean-Sebastien Vachon
an external resources. Thanks > -Original Message- > From: Jack Krupansky [mailto:j...@basetechnology.com] > Sent: April-15-14 4:36 PM > To: solr-user@lucene.apache.org > Subject: Re: Transformation on a numeric field > > You can use an update processor. The st

Re: Transformation on a numeric field

2014-04-15 Thread Jack Krupansky
You can use an update processor. The stateless script update processor will let you write arbitrary JavaScript code, which can do this calculation. You should be able to figure it out from the wiki: http://wiki.apache.org/solr/ScriptUpdateProcessor My e-book has plenty of script examples for t

Re: Transformation on a numeric field

2014-04-15 Thread Rafał Kuć
Hello! You can achieve that using update processor, for example look here: http://wiki.apache.org/solr/ScriptUpdateProcessor What you would have to do, in general, is create a script that would take a value of the field, divide it by the 1000 and put it in another field - the target numeric fiel