Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
Hi Gora, Please forgive the typo. This is merely a simplified example to illustrated the scenario (if/else and switch) we're trying to achieve; although the values have been changed the if/else and switch statements remain as is. The fact that the switch statement should work is the problem - it

Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
That post lost a lot of formatting. Please find attached instead. db-data-config.xml -- View this message in context: http://lucene.472066.n3.nabble.com/JavaScript-transform-switch-statement-during-Data-Import-tp4056340p405

Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
Sorry for not providing enough details initially. You're right, it's difficult for me to share the real code but let me try and give you an example. http://www.w3.org/2001/XInclude"/>

JavaScript transform switch statement during Data Import

2013-04-16 Thread paulblyth
Hello - I'm trying to add a switch statement into a JavaScript function that we use during an import; it's to replace an "if else" block that is becoming increasingly large. Bizarrely, the switch block is ignore entirely, and it doesn't have any effect whatsoever. Our version info: Solr Specifica