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 stateless script update processor

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

Transformation on a numeric field

2014-04-15 Thread Jean-Sebastien Vachon
Hi All, I am looking for a way to index a numeric field and its value divided by 1 000 into another numeric field. I thought about using a CopyField with a PatternReplaceFilterFactory to keep only the first few digits (cutting the last three). Solr complains that I can not have an analysis

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

Re: Transformation on a numeric field

2014-04-15 Thread Jack Krupansky
, April 15, 2014 3:57 PM To: 'solr-user@lucene.apache.org' Subject: Transformation on a numeric field Hi All, I am looking for a way to index a numeric field and its value divided by 1 000 into another numeric field. I thought about using a CopyField with a PatternReplaceFilterFactory to keep only