lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danielitos85 <danydany....@gmail.com>
Subject Re: Change the score of a document based on the *value* of a multifield using dismax
Date Sat, 31 Aug 2013 14:36:58 GMT
Thanks Erick, but think if I have an simple float value and not distance.

I have a situation like this:

- id: 1
- myText:  ["iphone", "ipad", "macbook"]
- myFieldFloat: [3.4,2.1,5.3]

I want to set the value of myFieldFloat at his respective myText.

I tried this:

<entity name="item"
query="SELECT myText,
                  myFloatValue
            FROM myTable
            WHERE myCondition" >
      
      <field name="myText" column="myText" boost="${item.myFloatValue}" />

but it return an error: 
org.apache.solr.handler.dataimport.DataImportHandlerException: Data Config
problem: For input string: "{$places.distance_place}"
    at 

I also tried to set in my query a Cast, but the same error:

SELECT myText,
  CAST(myFloatValue AS DECIMAL(10,6)) as myFloatValue
  FROM myTable
 WHERE myCondition

please, any suggests?



--
View this message in context: http://lucene.472066.n3.nabble.com/Change-the-score-of-a-document-based-on-the-value-of-a-multifield-tp4087503p4087663.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message