You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Solr User <so...@gmail.com> on 2010/11/11 16:32:52 UTC

Re: WELCOME to solr-user@lucene.apache.org

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

On Thu, Nov 11, 2010 at 10:26 AM, <so...@lucene.apache.org> wrote:

> Hi! This is the ezmlm program. I'm managing the
> solr-user@lucene.apache.org mailing list.
>
> I'm working for my owner, who can be reached
> at solr-user-owner@lucene.apache.org.
>
> Acknowledgment: I have added the address
>
>   solrnew@gmail.com
>
> to the solr-user mailing list.
>
> Welcome to solr-user@lucene.apache.org!
>
> Please save this message so that you know the address you are
> subscribed under, in case you later want to unsubscribe or change your
> subscription address.
>
>
> --- Administrative commands for the solr-user list ---
>
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
>
> To subscribe to the list, send a message to:
>   <so...@lucene.apache.org>
>
> To remove your address from the list, send a message to:
>   <so...@lucene.apache.org>
>
> Send mail to the following for info and FAQ for this list:
>   <so...@lucene.apache.org>
>   <so...@lucene.apache.org>
>
> Similar addresses exist for the digest list:
>   <so...@lucene.apache.org>
>   <so...@lucene.apache.org>
>
> To get messages 123 through 145 (a maximum of 100 per request), mail:
>   <so...@lucene.apache.org>
>
> To get an index with subject and author for messages 123-456 , mail:
>   <so...@lucene.apache.org>
>
> They are always returned as sets of 100, max 2000 per request,
> so you'll actually get 100-499.
>
> To receive all messages with the same subject as message 12345,
> send a short message to:
>   <so...@lucene.apache.org>
>
> The messages should contain one line or word of text to avoid being
> treated as sp@m, but I will ignore their content.
> Only the ADDRESS you send to is important.
>
> You can start a subscription for an alternate address,
> for example "john@host.domain", just add a hyphen and your
> address (with '=' instead of '@') after the command word:
> <so...@lucene.apache.org>
>
> To stop subscription for this address, mail:
> <so...@lucene.apache.org>
>
> In both cases, I'll send a confirmation message to that address. When
> you receive it, simply reply to it to complete your subscription.
>
> If despite following these instructions, you do not get the
> desired results, please contact my owner at
> solr-user-owner@lucene.apache.org. Please be patient, my owner is a
> lot slower than I am ;-)
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <so...@gmail.com>
> Received: (qmail 48883 invoked by uid 99); 11 Nov 2010 15:26:44 -0000
> Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
>    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 15:26:44
> +0000
> X-ASF-Spam-Status: No, hits=2.2 required=10.0
>
>  tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
> X-Spam-Check-By: apache.org
> Received-SPF: pass (nike.apache.org: domain of solrnew@gmail.comdesignates 209.85.213.48 as permitted sender)
> Received: from [209.85.213.48] (HELO mail-yw0-f48.google.com)
> (209.85.213.48)
>    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 15:26:35
> +0000
> Received: by ywp4 with SMTP id 4so1394872ywp.35
>        for <solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew=gmail.com
> @lucene.apache.org>; Thu, 11 Nov 2010 07:26:14 -0800 (PST)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>        d=gmail.com; s=gamma;
>        h=domainkey-signature:mime-version:received:received:in-reply-to
>         :references:date:message-id:subject:from:to:content-type;
>        bh=4KuKRrRVLjzTO4oB9/DNxMdQPfNQH2GnYznzPE6YqOo=;
>        b=l5lBfUYcyvipJn9SE+5j+t1XUmBjTtbyPYlRVj7jDb6G+W3NzQ21EHOowiD9rNH2L9
>
> gc2+6mGEZmRJOZQwpKD7SUQ2bXL9fVm7mVfS21TMAgC+ZsWQ3vvFOHXalWZa8dbtcOY7
>         C23KauLY7YH1UfducfXL77J7u0/snEZl5jQ7A=
> DomainKey-Signature: a=rsa-sha1; c=nofws;
>        d=gmail.com; s=gamma;
>
>  h=mime-version:in-reply-to:references:date:message-id:subject:from:to
>         :content-type;
>        b=nb9+3a9bOHnjGO5T5BhMlW15adcafr+MPzvpgc5X5NXEUGCI05ViLho0SSoQP2Wp2i
>
> xp1Mfjrjw05umeKmHX23oeD5Idc2G6xgz8I3ZcJ1bUM+cD7c52cMKG2suE2VvhUHlfah
>         z52rEtlqd0Q9fk/ZDWwR2DS7GoiVMRmgaWgD0=
> MIME-Version: 1.0
> Received: by 10.229.216.201 with SMTP id hj9mr877669qcb.58.1289489174123;
> Thu,
>  11 Nov 2010 07:26:14 -0800 (PST)
> Received: by 10.229.66.165 with HTTP; Thu, 11 Nov 2010 07:26:14 -0800 (PST)
> In-Reply-To: <12...@lucene.apache.org>
> References: <12...@lucene.apache.org>
> Date: Thu, 11 Nov 2010 10:26:14 -0500
> Message-ID: <AA...@mail.gmail.com>
> >
> Subject: Re: confirm subscribe to solr-user@lucene.apache.org
> From: Solr User <so...@gmail.com>
> To: solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew=gmail.com@
> lucene.apache.org
> Content-Type: multipart/alternative; boundary=0016361e83f82a56590494c898ec
> X-Virus-Checked: Checked by ClamAV on apache.org
>
> --0016361e83f82a56590494c898ec
> Content-Type: text/plain; charset=ISO-8859-1
>
> Please add me.
>
> On Thu, Nov 11, 2010 at 10:25 AM, <so...@lucene.apache.org>
> wrote:
>
> > Hi! This is the ezmlm program. I'm managing the
> > solr-user@lucene.apache.org mailing list.
> >
> > I'm working for my owner, who can be reached
> > at solr-user-owner@lucene.apache.org.
> >
> > To confirm that you would like
> >
> >   solrnew@gmail.com
> >
> > added to the solr-user mailing list, please send
> > a short reply to this address:
> >
> >   solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew=gmail.com@
> > lucene.apache.org
> >
> > Usually, this happens when you just hit the "reply" button.
> > If this does not work, simply copy the address and paste it into
> > the "To:" field of a new message.
> >
> > or click here:
> >        mailto:solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew=
> > gmail.com@lucene.apache.org
> >
> > This confirmation serves two purposes. First, it verifies that I am able
> > to get mail through to you. Second, it protects you in case someone
> > forges a subscription request in your name.
> >
> > Some mail programs are broken and cannot handle long addresses. If you
> > cannot reply to this request, instead send a message to
> > <so...@lucene.apache.org> and put the
> > entire address listed above into the "Subject:" line.
> >
> >
> > --- Administrative commands for the solr-user list ---
> >
> > I can handle administrative requests automatically. Please
> > do not send them to the list address! Instead, send
> > your message to the correct command address:
> >
> > To subscribe to the list, send a message to:
> >   <so...@lucene.apache.org>
> >
> > To remove your address from the list, send a message to:
> >   <so...@lucene.apache.org>
> >
> > Send mail to the following for info and FAQ for this list:
> >   <so...@lucene.apache.org>
> >   <so...@lucene.apache.org>
> >
> > Similar addresses exist for the digest list:
> >   <so...@lucene.apache.org>
> >   <so...@lucene.apache.org>
> >
> > To get messages 123 through 145 (a maximum of 100 per request), mail:
> >   <so...@lucene.apache.org>
> >
> > To get an index with subject and author for messages 123-456 , mail:
> >   <so...@lucene.apache.org>
> >
> > They are always returned as sets of 100, max 2000 per request,
> > so you'll actually get 100-499.
> >
> > To receive all messages with the same subject as message 12345,
> > send a short message to:
> >   <so...@lucene.apache.org>
> >
> > The messages should contain one line or word of text to avoid being
> > treated as sp@m, but I will ignore their content.
> > Only the ADDRESS you send to is important.
> >
> > You can start a subscription for an alternate address,
> > for example "john@host.domain", just add a hyphen and your
> > address (with '=' instead of '@') after the command word:
> > <so...@lucene.apache.org>
> >
> > To stop subscription for this address, mail:
> > <so...@lucene.apache.org>
> >
> > In both cases, I'll send a confirmation message to that address. When
> > you receive it, simply reply to it to complete your subscription.
> >
> > If despite following these instructions, you do not get the
> > desired results, please contact my owner at
> > solr-user-owner@lucene.apache.org. Please be patient, my owner is a
> > lot slower than I am ;-)
> >
> > --- Enclosed is a copy of the request I received.
> >
> > Return-Path: <so...@gmail.com>
> > Received: (qmail 46209 invoked by uid 99); 11 Nov 2010 15:25:03 -0000
> > Received: from athena.apache.org (HELO athena.apache.org)
> (140.211.11.136)
> >    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 15:25:03
> > +0000
> > X-ASF-Spam-Status: No, hits=0.2 required=10.0
> >
> >
>  tests=ASF_LIST_OPS,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
> > X-Spam-Check-By: apache.org
> > Received-SPF: pass (athena.apache.org: domain of
> solrnew@gmail.comdesignates 209.85.216.176 as permitted sender)
> > Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com)
> > (209.85.216.176)
> >    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 15:24:57
> > +0000
> > Received: by qyk32 with SMTP id 32so1526340qyk.14
> >        for <so...@lucene.apache.org>; Thu, 11 Nov 2010
> > 07:24:36 -0800 (PST)
> > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
> >        d=gmail.com; s=gamma;
> >
>  h=domainkey-signature:mime-version:received:received:date:message-id
> >         :subject:from:to:content-type;
> >        bh=k8yluPqCPVHLWaSy7rUOoksmQOOZqI+BdvVw6067evk=;
> >
>  b=SjJ2BXMRRd3Odw387Kwf0x9FgVWw/yaS7vdiHkMS4e8XJsKcaUurgAvS5mSeiF+LU+
> >
> > uoIelQz1PfEyHb+hnDWvGsT+ISorHi0iPNz14RLWMHxQzyoeFUIVi1qYuSBznHGN519L
> >         vH6BHGU7JuEkFK6bl/+D63+e7h1j3i2KvqSBQ=
> > DomainKey-Signature: a=rsa-sha1; c=nofws;
> >        d=gmail.com; s=gamma;
> >        h=mime-version:date:message-id:subject:from:to:content-type;
> >
>  b=FMty1feC+fM3Kcaqk+RsxJrPUcG3zYWbOHUvGj3myIe4cp4zoHpzoIhJdY85Y3P08n
> >
> > 082KotXcMdbjXjA//BMhBMY5huV25Im9DEzylTYIrA7KGnRe5tdTXp1GHbpT5f5a6+wO
> >         seNvBml2buUg5ClVP9NjMhzARfhgLxVqtzNbA=
> > MIME-Version: 1.0
> > Received: by 10.229.91.9 with SMTP id k9mr841746qcm.248.1289489076220;
> Thu,
> > 11
> >  Nov 2010 07:24:36 -0800 (PST)
> > Received: by 10.229.66.165 with HTTP; Thu, 11 Nov 2010 07:24:36 -0800
> (PST)
> > Date: Thu, 11 Nov 2010 10:24:36 -0500
> > Message-ID: <
> AANLkTimQPGGWLGhkZ4+ssAmCfk1SOkr3kEnO3652cJx5@mail.gmail.com<AA...@mail.gmail.com>
> <AA...@mail.gmail.com>
> >
> > >
> > Subject: Please add me to the list
> > From: Solr User <so...@gmail.com>
> > To: solr-user-subscribe@lucene.apache.org
> > Content-Type: multipart/alternative;
> boundary=001636164a2b54725f0494c892f3
> >
> > --001636164a2b54725f0494c892f3
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Please add me to the list
> >
> > Thanks,
> > Murali
> >
> > --001636164a2b54725f0494c892f3
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Transfer-Encoding: quoted-printable
> >
> > <div>Please add me to the list</div>
> > <div>=A0</div>
> > <div>Thanks,</div>
> > <div>Murali</div>
> >
> > --001636164a2b54725f0494c892f3--
> >
>
> --0016361e83f82a56590494c898ec
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Please add me.<br><br>
> <div class=3D"gmail_quote">On Thu, Nov 11, 2010 at 10:25 AM, <span
> dir=3D"l=
> tr">&lt;<a href=3D"mailto:solr-user-help@lucene.apache.org
> ">solr-user-help@=
> lucene.apache.org</a>&gt;</span> wrote:<br>
> <blockquote style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px
> 0.8ex=
> ; PADDING-LEFT: 1ex" class=3D"gmail_quote">Hi! This is the ezmlm program.
> I=
> &#39;m managing the<br><a href=3D"mailto:solr-user@lucene.apache.org
> ">solr-=
> user@lucene.apache.org</a> mailing list.<br>
> <br>I&#39;m working for my owner, who can be reached<br>at <a
> href=3D"mailt=
> o:solr-user-owner@lucene.apache.org<o%...@lucene.apache.org>
> ">solr-user-owner@lucene.apache.org</a>.=
> <br><br>To confirm that you would like<br><br>=A0 <a href=3D"mailto:
> solrnew=
> @gmail.com">solrnew@gmail.com</a><br>
> <br>added to the solr-user mailing list, please send<br>a short reply to
> th=
> is address:<br><br>=A0
> solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew=
> =3D<a href=3D"http://gmail.com/" target=3D"_blank">gmail.com</a>@<a
> href=3D=
> "http://lucene.apache.org/" target=3D"_blank">lucene.apache.org</a><br>
> <br>Usually, this happens when you just hit the &quot;reply&quot;
> button.<b=
> r>If this does not work, simply copy the address and paste it into<br>the
> &=
> quot;To:&quot; field of a new message.<br><br>or click here:<br>=A0 =A0
> =A0=
>  =A0mailto:<a href=3D"mailto:
> solr-user-sc.1289489103.apfngfdapdhadiahjfln-s=
> olrnew">solr-user-sc.1289489103.apfngfdapdhadiahjfln-solrnew</a>=3D<a href=
> =3D"http://gmail.com/" target=3D"_blank">gmail.com</a>@<a href=3D"
> http://lu=
> cene.apache.org/" target=3D"_blank">lucene.apache.org</a><br>
> <br>This confirmation serves two purposes. First, it verifies that I am
> abl=
> e<br>to get mail through to you. Second, it protects you in case
> someone<br=
> >forges a subscription request in your name.<br><br>Some mail programs are
> =
> broken and cannot handle long addresses. If you<br>
> cannot reply to this request, instead send a message to<br>&lt;<a
> href=3D"m=
> ailto:solr-user-request@lucene.apache.org<ai...@lucene.apache.org>
> ">solr-user-request@lucene.apache.=
> org</a>&gt; and put the<br>entire address listed above into the
> &quot;Subje=
> ct:&quot; line.<br>
> <br><br>--- Administrative commands for the solr-user list ---<br><br>I
> can=
>  handle administrative requests automatically. Please<br>do not send them
> t=
> o the list address! Instead, send<br>your message to the correct command
> ad=
> dress:<br>
> <br>To subscribe to the list, send a message to:<br>=A0 &lt;<a
> href=3D"mail=
> to:solr-user-subscribe@lucene.apache.org<to...@lucene.apache.org>
> ">solr-user-subscribe@lucene.apache=
> .org</a>&gt;<br><br>To remove your address from the list, send a message
> to=
> :<br>
> =A0 &lt;<a href=3D"mailto:solr-user-unsubscribe@lucene.apache.org
> ">solr-use=
> r-unsubscribe@lucene.apache.org</a>&gt;<br><br>Send mail to the following
> f=
> or info and FAQ for this list:<br>=A0 &lt;<a href=3D"mailto:
> solr-user-info@=
> lucene.apache.org">solr-user-info@lucene.apache.org</a>&gt;<br>
> =A0 &lt;<a href=3D"mailto:solr-user-faq@lucene.apache.org
> ">solr-user-faq@lu=
> cene.apache.org</a>&gt;<br><br>Similar addresses exist for the digest
> list:=
> <br>=A0 &lt;<a href=3D"mailto:solr-user-digest-subscribe@lucene.apache.org
> "=
> >solr-user-digest-subscribe@lucene.apache.org</a>&gt;<br>
> =A0 &lt;<a href=3D"mailto:solr-user-digest-unsubscribe@lucene.apache.org
> ">s=
> olr-user-digest-unsubscribe@lucene.apache.org</a>&gt;<br><br>To get
> message=
> s 123 through 145 (a maximum of 100 per request), mail:<br>=A0 &lt;<a href=
> =3D"mailto:solr-user-get.123_145@lucene.apache.org
> ">solr-user-get.123_145@l=
> ucene.apache.org</a>&gt;<br>
> <br>To get an index with subject and author for messages 123-456 ,
> mail:<br=
> >=A0 &lt;<a href=3D"mailto:solr-user-index.123_456@lucene.apache.org
> ">solr-=
> user-index.123_456@lucene.apache.org</a>&gt;<br><br>They are always
> returne=
> d as sets of 100, max 2000 per request,<br>
> so you&#39;ll actually get 100-499.<br><br>To receive all messages with
> the=
>  same subject as message 12345,<br>send a short message to:<br>=A0 &lt;<a
> h=
> ref=3D"mailto:solr-user-thread.12345@lucene.apache.org
> ">solr-user-thread.12=
> 345@lucene.apache.org</a>&gt;<br>
> <br>The messages should contain one line or word of text to avoid
> being<br>=
> treated as sp@m, but I will ignore their content.<br>Only the ADDRESS you
> s=
> end to is important.<br><br>You can start a subscription for an alternate
> a=
> ddress,<br>
> for example &quot;john@host.domain&quot;, just add a hyphen and
> your<br>add=
> ress (with &#39;=3D&#39; instead of &#39;@&#39;) after the command
> word:<br=
> >&lt;solr-user-subscribe-john=3D<a href=3D"mailto:
> host.domain@lucene.apache=
> .org">host.domain@lucene.apache.org</a>&gt;<br>
> <br>To stop subscription for this address,
> mail:<br>&lt;solr-user-unsubscri=
> be-john=3D<a href=3D"mailto:host.domain@lucene.apache.org
> ">host.domain@luce=
> ne.apache.org</a>&gt;<br><br>In both cases, I&#39;ll send a confirmation
> me=
> ssage to that address. When<br>
> you receive it, simply reply to it to complete your
> subscription.<br><br>If=
>  despite following these instructions, you do not get the<br>desired
> result=
> s, please contact my owner at<br><a href=3D"mailto:
> solr-user-owner@lucene.a=
> pache.org">solr-user-owner@lucene.apache.org</a>. Please be patient, my
> own=
> er is a<br>
> lot slower than I am ;-)<br><br>--- Enclosed is a copy of the request I
> rec=
> eived.<br><br>Return-Path: &lt;<a href=3D"mailto:solrnew@gmail.com
> ">solrnew=
> @gmail.com</a>&gt;<br>Received: (qmail 46209 invoked by uid 99); 11 Nov
> 201=
> 0 15:25:03 -0000<br>
> Received: from <a href=3D"http://athena.apache.org/"
> target=3D"_blank">athe=
> na.apache.org</a> (HELO <a href=3D"http://athena.apache.org/"
> target=3D"_bl=
> ank">athena.apache.org</a>) (140.211.11.136)<br>=A0 =A0by <a
> href=3D"http:/=
> /apache.org/" target=3D"_blank">apache.org</a> (qpsmtpd/0.29) with ESMTP;
> T=
> hu, 11 Nov 2010 15:25:03 +0000<br>
> X-ASF-Spam-Status: No, hits=3D0.2 required=3D10.0<br>=A0 =A0 =A0 =A0tests=
>
> =3DASF_LIST_OPS,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO=
> _NO_BRKTS_FREEMAIL<br>X-Spam-Check-By: <a href=3D"http://apache.org/"
> targe=
> t=3D"_blank">apache.org</a><br>
> Received-SPF: pass (<a href=3D"http://athena.apache.org/"
> target=3D"_blank"=
> >athena.apache.org</a>: domain of <a href=3D"mailto:solrnew@gmail.com
> ">solr=
> new@gmail.com</a> designates 209.85.216.176 as permitted
> sender)<br>Receive=
> d: from [209.85.216.176] (HELO <a href=3D"http://mail-qy0-f176.google.com/
> "=
>  target=3D"_blank">mail-qy0-f176.google.com</a>) (209.85.216.176)<br>
> =A0 =A0by <a href=3D"http://apache.org/" target=3D"_blank">apache.org</a>
> (=
> qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 15:24:57 +0000<br>Received: by
> q=
> yk32 with SMTP id 32so1526340qyk.14<br>=A0 =A0 =A0 =A0for &lt;<a
> href=3D"ma=
> ilto:solr-user-subscribe@lucene.apache.org<il...@lucene.apache.org>
> ">solr-user-subscribe@lucene.apac=
> he.org</a>&gt;; Thu, 11 Nov 2010 07:24:36 -0800 (PST)<br>
> DKIM-Signature: v=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed;<br>=A0 =A0 =A0
> =
> =A0d=3D<a href=3D"http://gmail.com/" target=3D"_blank">gmail.com</a>;
> s=3Dg=
> amma;<br>=A0 =A0 =A0
> =A0h=3Ddomainkey-signature:mime-version:received:recei=
> ved:date:message-id<br>=A0 =A0 =A0 =A0 :subject:from:to:content-type;<br>
> =A0 =A0 =A0 =A0bh=3Dk8yluPqCPVHLWaSy7rUOoksmQOOZqI+BdvVw6067evk=3D;<br>=A0
> =
> =A0 =A0
> =A0b=3DSjJ2BXMRRd3Odw387Kwf0x9FgVWw/yaS7vdiHkMS4e8XJsKcaUurgAvS5mSe=
> iF+LU+<br>=A0 =A0 =A0 =A0
> uoIelQz1PfEyHb+hnDWvGsT+ISorHi0iPNz14RLWMHxQzyoeF=
> UIVi1qYuSBznHGN519L<br>=A0 =A0 =A0 =A0
> vH6BHGU7JuEkFK6bl/+D63+e7h1j3i2KvqSB=
> Q=3D<br>
> DomainKey-Signature: a=3Drsa-sha1; c=3Dnofws;<br>=A0 =A0 =A0 =A0d=3D<a
> href=
> =3D"http://gmail.com/" target=3D"_blank">gmail.com</a>; s=3Dgamma;<br>=A0
> =
> =A0 =A0
> =A0h=3Dmime-version:date:message-id:subject:from:to:content-type;<b=
> r>=A0 =A0 =A0
> =A0b=3DFMty1feC+fM3Kcaqk+RsxJrPUcG3zYWbOHUvGj3myIe4cp4zoHpzoI=
> hJdY85Y3P08n<br>
> =A0 =A0 =A0 =A0
> 082KotXcMdbjXjA//BMhBMY5huV25Im9DEzylTYIrA7KGnRe5tdTXp1GHbp=
> T5f5a6+wO<br>=A0 =A0 =A0 =A0
> seNvBml2buUg5ClVP9NjMhzARfhgLxVqtzNbA=3D<br>MI=
> ME-Version: 1.0<br>Received: by 10.229.91.9 with SMTP id
> k9mr841746qcm.248.=
> 1289489076220; Thu, 11<br>
> =A0Nov 2010 07:24:36 -0800 (PST)<br>Received: by 10.229.66.165 with HTTP;
> T=
> hu, 11 Nov 2010 07:24:36 -0800 (PST)<br>Date: Thu, 11 Nov 2010 10:24:36
> -05=
> 00<br>Message-ID: &lt;<a href=3D"mailto:
> AANLkTimQPGGWLGhkZ4%2BssAmCfk1SOkr3<AANLkTimQPGGWLGhkZ4%252BssAmCfk1SOkr3>
> =
> kEnO3652cJx5@mail.gmail.com
> ">AANLkTimQPGGWLGhkZ4+ssAmCfk1SOkr3kEnO3652cJx5@=
> mail.gmail.com</a>&gt;<br>
> Subject: Please add me to the list<br>From: Solr User &lt;<a
> href=3D"mailto=
> :solrnew@gmail.com">solrnew@gmail.com</a>&gt;<br>To: <a href=3D"mailto:
> solr=
> -user-subscribe@lucene.apache.org">solr-user-subscribe@lucene.apache.org
> </a=
> ><br>
> Content-Type: multipart/alternative;
> boundary=3D001636164a2b54725f0494c892f=
> 3<br><br>--001636164a2b54725f0494c892f3<br>Content-Type: text/plain;
> charse=
> t=3DISO-8859-1<br><br>Please add me to the
> list<br><br>Thanks,<br>Murali<br=
> >
> <br>--001636164a2b54725f0494c892f3<br>Content-Type: text/html;
> charset=3DIS=
> O-8859-1<br>Content-Transfer-Encoding:
> quoted-printable<br><br>&lt;div&gt;P=
> lease add me to the
> list&lt;/div&gt;<br>&lt;div&gt;=3DA0&lt;/div&gt;<br>&lt=
> ;div&gt;Thanks,&lt;/div&gt;<br>
>
> &lt;div&gt;Murali&lt;/div&gt;<br><br>--001636164a2b54725f0494c892f3--<br></=
> blockquote></div><br>
>
> --0016361e83f82a56590494c898ec--
>

Re: WELCOME to solr-user@lucene.apache.org

Posted by Erick Erickson <er...@gmail.com>.
There's not much to go on here. Boosting works,
and index time as opposed to query time boosting
addresses two different needs. Could you add some
detail? All you've really said is "it didn't work", which
doesn't allow a very constructive response.

Perhaps you could review:
http://wiki.apache.org/solr/HowToContribute

Best
Erick



On Thu, Nov 11, 2010 at 10:32 AM, Solr User <so...@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
>
>
>

Re: WELCOME to solr-user@lucene.apache.org

Posted by Ahmet Arslan <io...@yahoo.com>.
> /spell/?q=built+to+last
> 
> so that we can check the spelling. We are not using
> /select?q=built+to+last
> 
> Can I use dismax with /spell?

Yes you can.

> I understood from your reply that I need to change my
> schema.xml and modify
> the field types.

Correct. Make them full-text searchable. string type is not tokenized.

> Do I need to still use the searchFields field and what do I
> need to specify
> in the defaultSearchField tag?

Delete searchFields, you don't need it. Regarding defaultSearchField, it does not matter with dismax. Write any of your fields. For example title.
And play with other dismax parameters. In short dismax is the way to go if you are searching multiple fields.


      

Re: WELCOME to solr-user@lucene.apache.org

Posted by Solr User <so...@gmail.com>.
Ahmet,

In production system we are using

/spell/?q=built+to+last

so that we can check the spelling. We are not using /select?q=built+to+last

Can I use dismax with /spell?

I understood from your reply that I need to change my schema.xml and modify
the field types.

Do I need to still use the searchFields field and what do I need to specify
in the defaultSearchField tag?

searchFields is one of the field names that we provided.

Thanks,
Solr User


On Fri, Nov 12, 2010 at 10:26 AM, Ahmet Arslan <io...@yahoo.com> wrote:

> >
> select/?q=built+to+last&defType=dismax&qf=searchFields^0.2+title^20&debugQuery=on
> >
> > For some reason if I use title field in my query I don't
> > get any results.
> >
> > I am copying all searchable fields into searchFields field.
> > So I am able to
> > search only in the searchFields field not in any other
> > fields.
> >
> > I request you all to clarify if anything wrong with my
> > schema.xml. The
> > schema.xml is at the bottom of this email.
> >
> > I am not able to get the boosting working on the title
> > field. Please help me
> > here too.
>
> Change type of your title field. It is string now. Make it solr.TextField.
> Actually you dont need cath-all copy field with dismax.
> Just change their types string to text and append them qf= parameter.
>
>
>
>

Re: WELCOME to solr-user@lucene.apache.org

Posted by Ahmet Arslan <io...@yahoo.com>.
> select/?q=built+to+last&defType=dismax&qf=searchFields^0.2+title^20&debugQuery=on
> 
> For some reason if I use title field in my query I don't
> get any results.
> 
> I am copying all searchable fields into searchFields field.
> So I am able to
> search only in the searchFields field not in any other
> fields.
> 
> I request you all to clarify if anything wrong with my
> schema.xml. The
> schema.xml is at the bottom of this email.
> 
> I am not able to get the boosting working on the title
> field. Please help me
> here too.

Change type of your title field. It is string now. Make it solr.TextField. Actually you dont need cath-all copy field with dismax. 
Just change their types string to text and append them qf= parameter.


      

Re: WELCOME to solr-user@lucene.apache.org

Posted by Solr User <so...@gmail.com>.
Ahmet,

Thanks for the reply.

select/?q=built+to+last&defType=dismax&qf=searchFields^0.2+title^20&debugQuery=on

For some reason if I use title field in my query I don't get any results.

I am copying all searchable fields into searchFields field. So I am able to
search only in the searchFields field not in any other fields.

I request you all to clarify if anything wrong with my schema.xml. The
schema.xml is at the bottom of this email.

I am not able to get the boosting working on the title field. Please help me
here too.

Thanks,
Solr User

On Thu, Nov 11, 2010 at 5:11 PM, Ahmet Arslan <io...@yahoo.com> wrote:

> 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 <so...@gmail.com> wrote:
>
> > From: Solr User <so...@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 <so...@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
> > >
> > >
> > >
> >
>
>
>
>

Re: WELCOME to solr-user@lucene.apache.org

Posted by Ramavtar Meena <ra...@gmail.com>.
Hi,

If you are looking for query time boosting on title field you can do
the following:
/select?q=title:android^10

Also unless you have a very good reason to use string for date data
(in your case pubdate and reldate), you should be using
solr.DateField.

regards,
Ram
On Fri, Nov 12, 2010 at 3:41 AM, Ahmet Arslan <io...@yahoo.com> wrote:
> 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 <so...@gmail.com> wrote:
>
>> From: Solr User <so...@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 <so...@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
>> >
>> >
>> >
>>
>
>
>
>

Re: WELCOME to solr-user@lucene.apache.org

Posted by Ahmet Arslan <io...@yahoo.com>.
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 <so...@gmail.com> wrote:

> From: Solr User <so...@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 &amp;
> 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 &amp;
> Dying</field><field name="category">Social
> Situations/Friendship</field><field
> name="path">/assets/product/0152051139.gif</field><field
> name="desc">&lt;div&gt;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.&lt;br&gt;
> &lt;br&gt;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.&lt;br&gt;&lt;/div&gt;</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 &amp;
> 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 &amp; 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">&lt;div&gt;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&lt;i&gt;
> &lt;/i&gt;perfect chair that's comfier and cozier
> than all the
> rest.&lt;br&gt; &lt;br&gt;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.&lt;br&gt;&lt;/div&gt;</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 <so...@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
> >
> >
> >
> 


      

Re: WELCOME to solr-user@lucene.apache.org

Posted by Solr User <so...@gmail.com>.
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 &amp;
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 &amp;
Dying</field><field name="category">Social
Situations/Friendship</field><field
name="path">/assets/product/0152051139.gif</field><field
name="desc">&lt;div&gt;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.&lt;br&gt; &lt;br&gt;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.&lt;br&gt;&lt;/div&gt;</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 &amp; 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 &amp; 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">&lt;div&gt;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&lt;i&gt;
&lt;/i&gt;perfect chair that's comfier and cozier than all the
rest.&lt;br&gt; &lt;br&gt;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.&lt;br&gt;&lt;/div&gt;</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 <so...@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
>
>
>