Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 806EAEC52 for ; Mon, 25 Feb 2013 18:52:52 +0000 (UTC) Received: (qmail 29098 invoked by uid 500); 25 Feb 2013 18:52:49 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 29052 invoked by uid 500); 25 Feb 2013 18:52:49 -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 29043 invoked by uid 99); 25 Feb 2013 18:52:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 18:52:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmuguruza@gmail.com designates 209.85.219.48 as permitted sender) Received: from [209.85.219.48] (HELO mail-oa0-f48.google.com) (209.85.219.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 18:52:44 +0000 Received: by mail-oa0-f48.google.com with SMTP id j1so3470670oag.21 for ; Mon, 25 Feb 2013 10:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=CUt+z58BP3EI/sEdEK6a0RAvEm78JTUn6VR1h3eL2ew=; b=elsYL1UkpnntroXVx4dKXHnWt9uSxlHu6N3tLz5bMVBGXKqOdGgC/vFlE/Dvjzdwgx TePFeFOjNwNenlQH0vDSL8YXfzeSwWZK1yPeOTaJpIGwqr+Vmt3YbWN3u6nADBuErSI1 yC3AJKAOcmCGqIoDS0QlcosjyIXpglH7kspudvFXjzJhuW7yIvD2LBFcy3p2HFABnze1 keamAftCQBmhQzGY/l0GQQ1htBzXugH6NkLFaJ8HqvXnGeStG6ROSjAMOpn1mx+hWy29 mfjbTUowf8NDP1IQZpjGA7C0PhA15kIOYzKv44wObicK7PPY3fAkDcleKGdWEM9DNeRh 1i5A== X-Received: by 10.60.29.72 with SMTP id i8mr8552512oeh.93.1361818343538; Mon, 25 Feb 2013 10:52:23 -0800 (PST) MIME-Version: 1.0 Sender: jmuguruza@gmail.com Received: by 10.76.154.197 with HTTP; Mon, 25 Feb 2013 10:51:53 -0800 (PST) In-Reply-To: <16C258AC-7C08-487D-9B1F-EFE6CC1FE33A@cominvent.com> References: <16C258AC-7C08-487D-9B1F-EFE6CC1FE33A@cominvent.com> From: jmlucjav Date: Mon, 25 Feb 2013 19:51:53 +0100 X-Google-Sender-Auth: BzL8b7zLx6bLuLp01bxIF66BeyM Message-ID: Subject: Re: [ANN] vifun: tool to help visually tweak Solr boosting To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1f8069d8f8504d6910a7d X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1f8069d8f8504d6910a7d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jan, thanks for looking at this! - Running from source: would you care to send me the error you get (if any) when running from source? I assume you have griffon1.1.0 installed right? - Binary dist: the distrib is created by griffon, so I'll check if the permission issue (I develop on windows, and tested on a clean windows too, so I don't face the issue you mention) is known or can be fixed somehow. I'll update the doc anyway. - wt param: I am already overriding wt param (in order to use javabin). What I didn't allow is to choose the handler to be used when submitting the query. I guess any handler that does not have / that would interfere would work fine, I just thought /select is mostly available in most installations and that is one thing less to configure. But yes, I could let the user configure it, I'll open an issue. xavier On Mon, Feb 25, 2013 at 3:10 PM, Jan H=F8ydahl wrot= e: > Cool. I tried running from source (using the bundled griffonw), but I > think the instructions may be wrong, had to download binary dist. > The file permissions for bin/vifun in binary dist should have +w so you > can execute it with ./vifun > > What about the ability to override the "wt" param, so that you can point > it to the "/browse" handler directly? > > -- > Jan H=F8ydahl, search solution architect > Cominvent AS - www.cominvent.com > Solr Training - www.solrtraining.com > > 23. feb. 2013 kl. 15:12 skrev jmlucjav : > > > Hi, > > > > I have built a small tool to help me tweak some params in Solr (typical= ly > > qf, bf in edismax). As maybe others find it useful, I am open sourcing = it > > on github: https://github.com/jmlucjav/vifun > > > > Check github for some more info and screenshots. I include part of the > > github page below. > > regards > > > > Description > > > > Did you ever spend lots of time trying to tweak all numbers in a > *edismax* > > handler *qf*, *bf*, etc params so docs get scored to your liking? Imagi= ne > > you have the params below, is 20 the right boosting for *name* or is it > too > > much? Is *population* being boosted too much versus distance? What abou= t > > new documents? > > > > > > name^20 textsuggest^10 edge^5 ngram^2 > phonetic^1 > > 33% > > > > recip(geodist(),1,500,0) > > > > product(log(sum(population,1)),100) > > > > recip(rord(moddate),1,1000,1000) > > > > This tool was developed in order to help me tweak the values of boostin= g > > functions etc in Solr, typically when using edismax handler. If you are > fed > > up of: change a number a bit, restart Solr, run the same query to see h= ow > > documents are scored now...then this tool is for you. > > Features > > > > - Can tweak numeric values in the following params: *qf, pf, bf, bq, > > boost, mm* (others can be easily added) even in * or > > * > > - View side by side a Baseline query result and how it changes when y= ou > > gradually change each value in the params > > - Colorized values, color depends on how the document does related to > > baseline query > > - Tooltips give you Explain info > > - Works on remote Solr installations > > - Tested with Solr 3.6, 4.0 and 4.1 (other versions would work too, a= s > > long as wt=3Djavabin format is compatible) > > - Developed using Groovy/Griffon > > > > Requirements > > > > - */select* handler should be available, and not have any * = or > > *, as it could interfere with how vifun works. > > - Java6 is needed (maybe it runs on Java5 too). A JRE should be enoug= h. > > > > Getting started > > < > https://github.com/jmlucjav/vifun#click-here-to-download-latest-version-a= nd-unzip > >Click > > here to download latest > > version< > http://code.google.com/p/vifun/downloads/detail?name=3Dvifun-0.4.zip> > > and > > unzip > > > > - Run vifun-0.4\bin\vifun.bat or vifun-04\bin\vifun if on linux/OSX > > - Edit *Solr URL* to match yours (in Sol4.1 default is > > http://localhost:8983/solr/collection1 for example) [image: hander > > selection]< > https://github.com/jmlucjav/vifun/raw/master/img/screenshot-handlers.jpg> > > - *Show Handerls*, and select the handler you wish to tweak from * > > Handerls* dropdown. The text area below shows the parameters of the > > handler. > > - Modify the values to run a baseline query: > > - *q*: query string you want to use > > - *rows*: as in Solr, don't choose a number too small, so you can > see > > more documents, I typically use 500 > > - *fl*: comma separated list of fields you want to show for each > doc, > > keep it short (other fields needed will be added, like the id, > score) > > - *rest*: in case you need to add more params, for example: sfield= , > > fq etc) [image: query > > params]< > https://github.com/jmlucjav/vifun/raw/master/img/screenshot-qparams.jpg> > > - *Run Query*. The two panels on the right will show the same result, > > sorted by score.[image: > > results]< > https://github.com/jmlucjav/vifun/raw/master/img/screenshot-results.jpg> > > - Use the mouse to select the number you want to tweak in Score param= s > > (select all the digits). Note the label of the field is highlighted > with > > current value. [image: target > > selection]< > https://github.com/jmlucjav/vifun/raw/master/img/screenshot-selecttarget.= jpg > > > > - Move the slider, release and see how a new query is run, and you ca= n > > compare how result changes with the current value. In the Current > table, > > you can see current position/score and also delta relative to the > baseline. > > The colour of the row reflects how much the doc gained/lost. [image: > > tweaking a value]< > https://github.com/jmlucjav/vifun/raw/master/img/screenshot-baseline.jpg> > > - You can increase the limits of the slider, and if you are satisfied > > with a value, set it, so it will be set to current value. > > - Tweak another number... > > - Tooltips exist in Current (Explain info) and Baseline (pos/score of > > that doc in Current, and Explain in Score column) > > --e89a8fb1f8069d8f8504d6910a7d--