title: Using another field value as default in a solr function query
body: <p>I'm trying to run the following query:</p>
  
  <pre><code>/solr/select?q=_val_:query("{!dismax qf=text v='solr rocks'}", my_field)
  </code></pre>
  
  <p>But, specifying <code>my_field</code> as the default value throws the error:</p>
  
  <pre><code>java.lang.NumberFormatException: For input string: "my_field"
  </code></pre>
  
  <p>Additionally, these queries also fail:</p>
  
  <pre><code>/solr/select?q=_val_:query("{!dismax qf=text v='solr rocks'}", ceil(my_field))
  /solr/select?q=_val_:query("{!dismax qf=text v='solr rocks'}", ceil(1.0))
  </code></pre>
  
  <p>Can we not specify another field or function as the default in function queries? Is there another way to accomplish what I'm trying to do?</p>
  
  <p>I'm using Solr 3.1.</p>