Hi all,

I tried to use constant score into qf parameter but I had an exception.
Is this normal? The qf parameter actually is something like this:

field1^3 field2^4 field3^5... etc.

Because it's a query for an ecommerce website I don't want that the results
are influenced by tf/idf.

Is there any chance to avoid this behaviour? Thanks in advance.
Vincenzo

The exception raised

<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <bool name="zkConnected">true</bool>
  <int name="status">500</int>
  <int name="QTime">1</int>
</lst>
<lst name="error">
  <str name="msg">For input string: "=3"</str>
  <str name="trace">java.lang.NumberFormatException: For input string: "=3"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at
org.apache.solr.util.SolrPluginUtils.parseFieldBoosts(SolrPluginUtils.java:540)
at
org.apache.solr.search.DisMaxQParser.parseQueryFields(DisMaxQParser.java:71)
at
org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.&lt;init&gt;(ExtendedDismaxQParser.java:1608)
at
org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:256)
at
org.apache.solr.search.ExtendedDismaxQParser.&lt;init&gt;(ExtendedDismaxQParser.java:115)
at
org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:31)


-- 
Vincenzo D'Amore

Reply via email to