bq: I need to change the score of a document based on the value of a multifield
This is contradictory in the sense that there is no "value of a multifield". That is, which of the entries in a multiValued field is the "right" one to use? There's no syntax for doing a boost function on "the first thing in the field", or "the third thing in the field" etc. So tell us a little more about distance_place and what you want to use it for. Boosting by distance has a much different syntax, see: http://wiki.apache.org/solr/SpatialSearch#How_to_boost_closest_results Best Erick On Fri, Aug 30, 2013 at 9:57 AM, danielitos85 <danydany....@gmail.com>wrote: > Hi guys, > > I need to change the score of a document based on the value of a > multifield. > I thoght that maybe I need to set boost in index-time (but I don't sure). > Now I explain you my situation: > > - I'm usng solr4.4 > - I'm index data using dataimporthandler with rdbms > - my documents are a particular kind of places > - my field are places and their review and description > - my multifield is distance_place beacause each place (one place is a > field) > has a lot of review or description > > I'm tring with the following request but it return error "can not use > FieldCache on multivalued field: distance_place" > > http://localhost:8983/solr/myCore/select?q={!boost b=distance_place v=$qq > defType=dismax}&qq=pizza&fl=*,score&qf=text_review+text_description > > I'm thinking that if I set the boost at each review/description with the > value of the distance_place in index-time it is easy, but in this case I > don't know which is the right syntax to set the boost into > db-dataimport.xml > file. > > Please, Any suggests? > Thanks in advance. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Change-the-score-of-a-document-based-on-the-value-of-a-multifield-using-dismax-tp4087503.html > Sent from the Solr - User mailing list archive at Nabble.com. >