: 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 docValues).  UpdateProcessors are the correct place 
to make changes like this.

Analysis Factories have existed a lot longer in SOlr then 
UpdateProcessors, so there are a lot more of them -- but the toolkit of 
available UpdateProcessors is devent and growing larger each release.

If you really want to "divide by 100" then a script based processor that 
does math is the correct way to go -- if you just want to truncate the 
last 2 characters of a string, you could use the 
RegexReplaceProcessorFactory -- but that might not behave the way you 
expect if your client is really sending you in a numeric value (via SolrJ, 
or DIH, or the JSON input format)



-Hoss
http://www.lucidworks.com/

Reply via email to