There are several mistakes in your approach: copyField just copies data. Index time boost is not copied.
There is no such boosting syntax. /select?q=Each&title^9&fl=score You are searching on your default field. This is not your cause of your problem but omitNorms="true" disables index time boosts. http://wiki.apache.org/solr/DisMaxQParserPlugin can satisfy your need. --- On Thu, 11/11/10, Solr User <solr...@gmail.com> wrote: > From: Solr User <solr...@gmail.com> > Subject: Re: WELCOME to solr-user@lucene.apache.org > To: solr-user@lucene.apache.org > Date: Thursday, November 11, 2010, 11:54 PM > Eric, > > Thank you so much for the reply and apologize for not > providing all the > details. > > The following are the field definitons in my schema.xml: > > <field name="title" type="string" indexed="true" > stored="true" > omitNorms="false" /> > > <field name="author" type="string" indexed="true" > stored="true" > multiValued="true" omitNorms="true" /> > > <field name="authortype" type="string" indexed="true" > stored="true" > multiValued="true" omitNorms="true" /> > > <field name="isbn13" type="string" indexed="true" > stored="true" /> > > <field name="isbn10" type="string" indexed="true" > stored="true" /> > > <field name="material" type="string" indexed="true" > stored="true" /> > > <field name="pubdate" type="string" indexed="true" > stored="true" /> > > <field name="pubyear" type="string" indexed="true" > stored="true" /> > > <field name="reldate" type="string" indexed="false" > stored="true" /> > > <field name="format" type="string" indexed="true" > stored="true" /> > > <field name="pages" type="string" indexed="false" > stored="true" /> > > <field name="desc" type="string" indexed="true" > stored="true" /> > > <field name="series" type="string" indexed="true" > stored="true" /> > > <field name="season" type="string" indexed="true" > stored="true" /> > > <field name="imprint" type="string" indexed="true" > stored="true" /> > > <field name="bisacsub" type="string" indexed="true" > stored="true" > multiValued="true" omitNorms="true" /> > > <field name="bisacstatus" type="string" indexed="false" > stored="true" /> > > <field name="category" type="string" indexed="true" > stored="true" > multiValued="true" omitNorms="true" /> > > <field name="award" type="string" indexed="true" > stored="true" > multiValued="true" omitNorms="true" /> > > <field name="age" type="string" indexed="true" > stored="true" /> > > <field name="reading" type="string" indexed="true" > stored="true" /> > > <field name="grade" type="string" indexed="true" > stored="true" /> > > <field name="path" type="string" indexed="false" > stored="true" /> > > <field name="shortdesc" type="string" indexed="true" > stored="true" /> > > <field name="subtitle" type="string" indexed="true" > stored="true" > omitNorms="true"/> > > <field name="price" type="float" indexed="true" > stored="true"/> > > <field name="searchFields" type="textSpell" > indexed="true" stored="true" > multiValued="true" omitNorms="true"/> > > Copy Fields: > > <copyField source="title" dest="searchFields"/> > > <copyField source="author" dest="searchFields"/> > > <copyField source="isbn13" dest="searchFields"/> > > <copyField source="isbn10" dest="searchFields"/> > > <copyField source="format" dest="searchFields"/> > > <copyField source="series" dest="searchFields"/> > > <copyField source="season" dest="searchFields"/> > > <copyField source="imprint" dest="searchFields"/> > > <copyField source="bisacsub" dest="searchFields"/> > > <copyField source="category" dest="searchFields"/> > > <copyField source="award" dest="searchFields"/> > > <copyField source="shortdesc" dest="searchFields"/> > > <copyField source="desc" dest="searchFields"/> > > <copyField source="subtitle" dest="searchFields"/> > > > > <defaultSearchField>searchFields</defaultSearchField> > > > > Before creating the indexes I feed XML file to the Solr job > to create index > files. I added Boost attribute to the title field before > creating indexes > and an example is below: > > <?xml version="1.0" encoding="UTF-8" > standalone="no"?><add><doc><field > name="material">1785440</field><field > boost="10.0" name="title">Each Little > Bird That Sings</field><field > name="price">16.0</field><field > name="isbn10">0152051139</field><field > name="isbn13">9780152051136</field><field > name="format">Hardcover</field><field > name="pubdate">2005-03-01</field><field > name="pubyear">2005</field><field > name="reldate">2005-02-22</field><field > name="pages">272</field><field > name="bisacstatus">Active</field><field > name="season">Spring > 2005</field><field > name="imprint">Children's</field><field > name="age">8.0-12.0</field><field > name="grade">3-6</field><field > name="author">Marla Frazee</field><field > name="authortype">Jacket > Illustrator</field><field name="author">Deborah > Wiles</field><field > name="authortype">Author</field><field > name="bisacsub">Social > Issues/Friendship</field><field > name="bisacsub">Social Issues/General (see > also headings under Family)</field><field > name="bisacsub">General</field><field > name="bisacsub">Girls & > Women</field><field > name="category">Fiction/Middle > Grade</field><field > name="category">Fiction/Award > Winners</field><field name="category">Coming > of Age</field><field name="category">Social > Situations/Death & > Dying</field><field name="category">Social > Situations/Friendship</field><field > name="path">/assets/product/0152051139.gif</field><field > name="desc"><div>Ten-year-old Comfort > Snowberger has attended 247 > funerals. But that's not surprising, considering that her > family runs the > town funeral home. And even though Great-uncle Edisto > keeled over with a > heart attack and Great-great-aunt Florentine dropped > dead--just like > that--six months later, Comfort knows how to deal with > loss, or so she > thinks. She's more concerned with avoiding her crazy cousin > Peach and trying > to figure out why her best friend, Declaration, suddenly > won't talk to her. > Life is full of surprises. And the biggest one of all is > learning what it > takes to handle them.<br> > <br>Deborah Wiles has created a > unique, funny, and utterly real cast of characters in this > heartfelt, and > quintessentially Southern coming-of-age novel. Comfort will > charm young > readers with her wit, her warmth, and her struggles as she > learns about > life, loss, and ultimately, > triumph.<br></div></field><field > name="shortdesc">Ten-year-old Comfort Snowberger learns > about life's > surprises in this funny, poignant, and very Southern > coming-of-age > story.</field></doc><doc><field > name="material">1195443</field><field > boost="10.0" name="title">Baby Bear's > Chairs</field><field > name="price">16.0</field><field > name="isbn10">0152051147</field><field > name="isbn13">9780152051143</field><field > name="format">Hardcover</field><field > name="pubdate">2005-09-01</field><field > name="pubyear">2005</field><field > name="reldate">2005-08-01</field><field > name="pages">40</field><field > name="bisacstatus">Active</field><field > name="season">Fall > 2005</field><field > name="imprint">Children's</field><field > name="age">2.0-5.0</field><field > name="grade">P-K</field><field > name="author">Jane Yolen</field><field > name="authortype">Author</field><field > name="author">Melissa > Sweet</field><field > name="authortype">Illustrator</field><field > name="bisacsub">Bedtime & > Dreams</field><field > name="bisacsub">Animals/Bears</field><field > name="bisacsub">Family/General > (see also headings under Social > Issues)</field><field name="bisacsub">Social > Issues/Emotions & Feelings</field><field > name="bisacsub">Family/Parents</field><field > name="category">Animals/Bears</field><field > name="category">Bedtime > Books</field><field name="category">Family > Relationships/Parent-Child</field><field > name="path">/assets/product/0152051147.gif</field><field > name="desc"><div>Baby Bear is the littlest > bear in his family, and > sometimes that's not so easy. Mama and Papa Bear get to > stay up late in > their great big chairs. Big brother gets to play fun games > in his > middle-sized chair. And Baby Bear only seems to cause > trouble in his own > tiny chair. But at the end of the day, he finds the > one<i> > </i>perfect chair that's comfier and cozier > than all the > rest.<br> <br>Bestselling > author Jane Yolen and popular > illustrator Melissa Sweet have come together to create a > lyrical bedtime > tale about a baby bear trying to find his place in a > family. With a playful > rhyming text and adorable, fun illustrations, here is a > book for parents and > their own baby bears to > treasure.<br></div></field><field > name="shortdesc">In this sweet, bedtime story, Baby Bear > discovers that > Papa's lap is the best chair of > all!</field></doc></add> > > I am trying to boost the title field so that the search > results brings the > actual match with title as the first item in the results. > > Adding boost attribute to the title field and Index time > boosting did not > change the search results. I tried Query time boosting also > as mentioned > below but no luck > > /select?q=Each+Little+Bird+That+Sings&title^9&fl=score > > Any help to fix this issue would be really helpful. > > Thanks, > > Solr User > On Thu, Nov 11, 2010 at 10:32 AM, Solr User <solr...@gmail.com> > wrote: > > > Hi, > > > > I have a question about boosting. > > > > I have the following fields in my schema.xml: > > > > 1. title > > 2. description > > 3. ISBN > > > > etc > > > > I want to boost the field title. I tried index time > boosting but it did not > > work. I also tried Query time boosting but with no > luck. > > > > Can someone help me on how to implement boosting on a > specific field like > > title? > > > > Thanks, > > Solr User > > > > > > >