Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 22562 invoked from network); 18 Nov 2010 18:06:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 18:06:06 -0000 Received: (qmail 31783 invoked by uid 500); 18 Nov 2010 18:06:30 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 31680 invoked by uid 500); 18 Nov 2010 18:06:30 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 31672 invoked by uid 99); 18 Nov 2010 18:06:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 18:06:30 +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.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 18:06:22 +0000 Received: by pzk35 with SMTP id 35so1035652pzk.35 for ; Thu, 18 Nov 2010 10:06:00 -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=rcbskU+jXrnH+bneMOR+rG7D8x9l2pDZ4igQNyqK8AI=; b=fnhj9MZ1ibPD6ww7bNdGcZvp233ZEOJUWE4yuWkfHhUWUmX7POBkEMC62fTam/kDSH UjcQEZWcqbq788k1rw0KL7a8NTOeQnCpqYvty1XjvD4uLq84SvMNJNgaOb237qlvLzfi kuthiY6EWBLEFAlTyYQAVfEAx2tBLnXsYuiI0= 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=DGO1TbasPO5Q1/xU3KxE58F2su+Kd0mzIxSiOyPEz+nHafgbnOFaOY0akyrmaUKBOJ PDTBLu73Cdu0g0YLlduarPoSU3vYSS/YbMMU+wEzmeJf2BTRivo6CzVEeuDBr55hGQI2 K5mFw+rkLfvoBVe3cd9QFYtPHDaTNYepDCFE4= MIME-Version: 1.0 Received: by 10.229.233.74 with SMTP id jx10mr817797qcb.96.1290103559461; Thu, 18 Nov 2010 10:05:59 -0800 (PST) Received: by 10.229.66.165 with HTTP; Thu, 18 Nov 2010 10:05:59 -0800 (PST) In-Reply-To: <95552.11620.qm@web52907.mail.re2.yahoo.com> References: <95552.11620.qm@web52907.mail.re2.yahoo.com> Date: Thu, 18 Nov 2010 13:05:59 -0500 Message-ID: Subject: Re: Dismax - Boosting From: Solr User To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163630fb8d629d8a049557a4b8 X-Virus-Checked: Checked by ClamAV on apache.org --00163630fb8d629d8a049557a4b8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ahmet, I modified the schema as follows: (Added more fields for faceting) Also added Copy Fields as below: With the above changes I am not getting any facet data as a result. Why is that the facet data not returning and what mistake I did with the schema? Thanks, Solr User On Wed, Nov 17, 2010 at 6:42 PM, Ahmet Arslan wrote: > > > Wow you facet on many fields : > > author,pubyear,format,series,season,imprint,category,award,age,reading,gr= ade,price > > The fields you facet on should be untokenized type: string, int, tint dat= e > etc. > > The fields you want full text search, e.g. the ones you specify in qf, pf > parameter should be text type. > (title subtitle authordesc shortdesc imprint category isbn13 isbn10 forma= t > series season bisacsub award) > > If you have common fields, for example category, you need two copy of tha= t. > one string one text. So that you can both full-text search and facet on. > Use copy field for this. > > > > Example document: > category: electronic devices > > > query electronic will return it, and facets on category_string will be > displayed as : > > electronic devices (1) > > not : > > electronic (1) > devices (1) > > > > --- On Wed, 11/17/10, Solr User wrote: > > > From: Solr User > > Subject: Re: Dismax - Boosting > > To: solr-user@lucene.apache.org > > Date: Wednesday, November 17, 2010, 11:31 PM > > Ahmet, > > > > Thanks for the reply and it was very helpful. > > > > The query that I used before changing to dismax was: > > > > > /solr/tradecore/spell/?q=3Dcurious&wt=3Djson&rows=3D9&facet=3Dtrue&facet.= limit=3D-1&facet.mincount=3D1&facet.field=3Dauthor&facet.field=3Dpubyear&fa= cet.field=3Dformat&facet.field=3Dseries&facet.field=3Dseason&facet.field=3D= imprint&facet.field=3Dcategory&facet.field=3Daward&facet.field=3Dage&facet.= field=3Dreading&facet.field=3Dgrade&facet.field=3Dprice&spellcheck=3Dtrue > > > > The above query use to return all the data related to > > facets, data and also > > any suggestions related to spelling mistakes properly. > > > > The configuration after modifying using dismax is as > > below: > > > > Schema.xml: > > > > > indexed=3D"true" stored=3D"true" > > omitNorms=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > multiValued=3D"true" omitNorms=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > multiValued=3D"true" omitNorms=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"false" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"false" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > multiValued=3D"true" omitNorms=3D"true" /> > > > indexed=3D"false" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > multiValued=3D"true" omitNorms=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > multiValued=3D"true" omitNorms=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"false" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" /> > > > indexed=3D"true" stored=3D"true" > > omitNorms=3D"true"/> > > > indexed=3D"true" stored=3D"true"/> > > > > SolrConfig.xml: > > > > > class=3D"solr.SearchHandler" default=3D"true"> > > > > > name=3D"defType">dismax > > > name=3D"echoParams">explicit > > > > > > title^9.0 subtitle^3.0 > > author^1.0 desc shortdesc imprint category > > isbn13 isbn10 format series season bisacsub award > > > > > > > > * > > > > > > > > > > > > > > > > > > > > > > > > > > The query that I used after changing to dismax is: > > > > > solr/tradecore/select/?q=3Dcurious&wt=3Djson&rows=3D9&facet=3Dtrue&facet.= limit=3D-1&facet.mincount=3D1&facet.field=3Dauthor&facet.field=3Dpubyear&fa= cet.field=3Dformat&facet.field=3Dseries&facet.field=3Dseason&facet.field=3D= imprint&facet.field=3Dcategory&facet.field=3Daward&facet.field=3Dage&facet.= field=3Dreading&facet.field=3Dgrade&facet.field=3Dprice&spellcheck=3Dtrue > > > > > > The following are the issues that I am having after > > modifying to dismax: > > > > 1. Facets data is not coming correctly. Lot of extra data > > is coming. Why and > > how to fix it? > > 2. How to use spell checker request handler along with > > dismax? > > > > Thanks, > > Murali > > > > On Mon, Nov 15, 2010 at 5:38 PM, Ahmet Arslan > > wrote: > > > > > > 1. Do we need to change the above DisMax handler > > > > configuration as per our > > > > requirements? Or Leave it as it is? What > > changes? > > > > > > Yes, you need to edit it. At least field names. Does > > your schema has a > > > field named sku? > > > > > > > 2. Do we need make DisMax as a default request > > > > handler? Do I need to add > > > > attribute default=3D"true" to the tag? > > > > > > If you are going to always use it, why not, change it > > by adding > > > default=3D"true". By doing so you need to add qt > > parameter in every request. > > > But don't forget to delete other default=3D"true". There > > can be only one > > > default=3D"true" :) > > > > > > > 3. I read in the documentation that Default > > Search Handler > > > > and DisMax are the same except that to use > > DisMaxQueryParser add > > > > defType=3Ddismax in the query string. Is there > > anything else do we need to > > > > do? > > > > > > Above dismax config contains default parameter list. > > So you don't need to > > > add &defType=3Ddismax&qf=3Dtitle^1.0 text^1.5 ... > > etc. to the query string. > > > > > > > > > > We are basically moving on to dismax handler and > > trying to > > > > understand what > > > > changes we need to make to SolrConfig.xml. > > > > > > As you can see in default solrconfig.xml, you can > > register multiple > > > instances of solr.SearchHandler with different default > > parameter list and > > > name. default=3D"true" one is executed by default. > > > > > > And this can be helpful deciding about dismax params: > > qf,pf,ps,ps,mm etc > > > http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/ > > > > > > > > > > > > > > > > > > --00163630fb8d629d8a049557a4b8--