And it would be worth filing a Jira for a “flexible numeric field type” in 
Lucene that could parse the common natural language representations of numbers. 
I mean, we’re just giving you WORKAROUNDS.

-- Jack Krupansky

From: Edwards, Joshua 
Sent: Friday, August 15, 2014 8:51 AM
To: [email protected] 
Subject: RE: Processing on a numeric fieldType?

Thanks guys, I will try that today!

 

Josh Edwards

 

From: Erik Hatcher [mailto:[email protected]] 
Sent: Thursday, August 14, 2014 6:01 PM
To: [email protected]
Subject: Re: Processing on a numeric fieldType?

 

And within an update script you can even call out to your own analysis just 
like Solr indexing does internally.  See slide #10 here: 
http://www.slideshare.net/erikhatcher/solr-indexing-and-analysis-tricks

 

            Erik

 

On Aug 14, 2014, at 5:25 PM, Jack Krupansky <[email protected]> wrote:





Write an update request processor to massage the data as you see fit. It’s easy 
to write a JavaScript snippet with the stateless script update processor.

 

See plenty of examples in my e-book:

http://www.lulu.com/us/en/shop/jack-krupansky/solr-4x-deep-dive-early-access-release-7/ebook/product-21203548.html

 

-- Jack Krupansky

 

From: Edwards, Joshua

Sent: Thursday, August 14, 2014 4:10 PM

To: [email protected]

Subject: Processing on a numeric fieldType?

 

Hello –

 

I am wanting to perform range searching on some numeric data.  The catch is 
that the numeric data is sometimes spelled out – ie “one hundred” instead of 
100.  I have created a filter that allows me to convert the textual 
representation into a numeric one.  However, I can’t add the filter to a 
numeric field, as they do not support filters, and if I store my data in a text 
field, then the range query doesn’t work correctly (it treats it 
alphanumerically instead of numerically).  I also attempted to use a copyField, 
but it appears that it performs the copy before my processing occurs, and so it 
throws an Exception because it attempts to copy “one hundred” into the numeric 
field instead of the processed value of 100. 

 

Can anyone please advise me on how to work through this issue?

 

Thanks,

Josh Edwards

 


--------------------------------------------------------------------------------

The information contained in this e-mail is confidential and/or proprietary to 
Capital One and/or its affiliates. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed.  If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.

 



--------------------------------------------------------------------------------

The information contained in this e-mail is confidential and/or proprietary to 
Capital One and/or its affiliates. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed.  If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.

Reply via email to