On Fri, 11 Mar 2016, at 03:19 PM, John Blythe wrote: > hey all, > > i'm tossing a lot of mud against the wall and am wanting to see what > sticks. part of that includes throwing item descriptions against some > fields i've set up as doubles. the imported data is a double and some of > the descriptions will have the related data within it (product sizes, > e.g. > "Super awesome product 10 x 20cm"). is there a way to throw text at a > number field (tdouble) and it only analyze the numbers instead of > throwing > an error? > > thanks for any info!
If you really must do that on the Solr side, I'd suggest you try doing it in an UpdateProcessor. You can either code these in Java, or in a scripting language with the StatelessScriptUpdateProcessor. You could strip out all of the non-numeric characters before they get to the index. Upayavira