Erick,
Thanks for replying :-).
If I were to do that, we are trying to set string value to int and Solr
throws an error.
Oh wait, I guess it works because Solr would automatically parse based on
the data type of the field. :-).
As I could see from the exception
java.lang.NumberFormatException.
at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
>
> Also if I were to set default values for sting fields, it would be
> *default="null" and not null*.
>
> is there way to set default value of the field to *null instead of "null"*
>
> is there any solution?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-set-default-values-for-int-fields-tp4099741.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
on?
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-set-default-values-for-int-fields-tp4099741.html
Sent from the Solr - User mailing list archive at Nabble.com.