Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 69181 invoked from network); 29 Jun 2010 13:09:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 13:09:47 -0000 Received: (qmail 3537 invoked by uid 500); 29 Jun 2010 13:09:45 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 3336 invoked by uid 500); 29 Jun 2010 13:09:41 -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 3321 invoked by uid 99); 29 Jun 2010 13:09:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 13:09:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [188.40.37.16] (HELO hq1.backendmedia.com) (188.40.37.16) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 13:09:32 +0000 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id 28552200C18D for ; Tue, 29 Jun 2010 13:08:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lMVrbZvXZdxI for ; Tue, 29 Jun 2010 15:08:55 +0200 (CEST) Received: from [192.168.80.154] (77-58-253-248.dclient.hispeed.ch [77.58.253.248]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id ACB72200C187 for ; Tue, 29 Jun 2010 15:08:55 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: optional vs. probhibited aka standard vs. dismax handler From: Lukas Kahwe Smith In-Reply-To: <1A07426E-1DC3-4383-BB56-98363AC2702A@cominvent.com> Date: Tue, 29 Jun 2010 15:08:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <6AAB73E9-7163-44C7-B608-7BC2F8DE41A7@pooteeweet.org> References: <2C27E384-FB77-44EF-A723-51870C457BE5@cominvent.com> <42BE077D-C661-43C0-A3A9-FC9B9716A5A3@pooteeweet.org> <1A07426E-1DC3-4383-BB56-98363AC2702A@cominvent.com> To: solr-user@lucene.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On 29.06.2010, at 15:01, Jan H=F8ydahl / Cominvent wrote: > When you mix query handlers like this you will need to add a "+" or an = "AND" in front of the _query_: part as well, in order for it to be = required. > You will see the difference when you try the above query directly on = your Solr instance and add &debugQuery=3Dtrue. Your parsedquerystring = will show your real query. ok .. i quickly tried this out before i send my last email. probably did = something wrong. > BTW: > It is a better practice to submit your fielded terms as filters as = they don't need to contribute to the score. I.e. you could rewrite your = query from: > q=3D+tag_ids:(23) +document_code_prefix:(A/RES/58) = (_query_:"{!dismax qf=3D'content document_title' pf=3D'content = document_title' v=3D$qq}&qq=3Ddecade -domestic > to: > q=3Ddecade -domestic&defType=3Ddismax&qf=3Dcontent = document_title&pf=3Dcontent = document_title&fq=3Dtag_ids:(23)&fq=3Ddocument_code_prefix:(A/RES/58) i am already doing the facet filters via fq. however since i do want to = allow optional fielded filters it seemed to make more sense to leave all = of that in the q part. > Also, you may want to apply patch SOLR-1553 and start using the = eDisMax handler which allows fielded search and boolean operators, if = you need more advanced user-facing query syntax. yeah .. i am keeping an eye on that already. thx! regards, Lukas Kahwe Smith mls@pooteeweet.org