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 6E6C9108F7 for ; Wed, 4 Sep 2013 00:55:22 +0000 (UTC) Received: (qmail 3871 invoked by uid 500); 4 Sep 2013 00:55:18 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 3819 invoked by uid 500); 4 Sep 2013 00:55:18 -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 3811 invoked by uid 99); 4 Sep 2013 00:55:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 00:55:18 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ndushay@stanford.edu designates 171.67.219.83 as permitted sender) Received: from [171.67.219.83] (HELO smtp.stanford.edu) (171.67.219.83) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 00:55:12 +0000 Received: from smtp.stanford.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id E6D0A10227A for ; Tue, 3 Sep 2013 17:54:51 -0700 (PDT) Received: from dnab4212ed.stanford.edu (DNab4212ed.Stanford.EDU [171.66.18.237]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ndushay) by smtp.stanford.edu (Postfix) with ESMTPSA id 68CA3102277 for ; Tue, 3 Sep 2013 17:54:51 -0700 (PDT) From: Naomi Dushay Content-Type: multipart/alternative; boundary="Apple-Mail=_2EAF297E-122F-4335-AA6B-23C3E5E88839" Subject: mm, tie, qs, ps and CJKBigramFilter and edismax and dismax Date: Tue, 3 Sep 2013 17:54:50 -0700 Message-Id: <6F8214AA-01C9-4279-A525-D1139C397F51@stanford.edu> To: solr-user@lucene.apache.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_2EAF297E-122F-4335-AA6B-23C3E5E88839 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 When I have a field using CJKBigramFilter, parsed CJK chars have a = different parsedQuery than non-CJK queries. (=E6=97=A7=E5=B0=8F=E8=AF=B4 is 3 chars, so 2 bigrams) args sent in: q=3D{!qf=3Dbi_fld}=E6=97=A7=E5=B0=8F=E8=AF=B4&pf=3D&pf= 2=3D&pf3=3D debugQuery {!qf=3Dbi_fld}=E6=97=A7=E5=B0=8F=E8=AF=B4<= /str> {!qf=3Dbi_fld}=E6=97=A7=E5=B0=8F=E8=AF=B4 (+DisjunctionMaxQuery((((bi_fld:=E6=97=A7=E5=B0= =8F bi_fld:=E5=B0=8F=E8=AF=B4)~2))~0.01) ())/no_coord +(((bi_fld:=E6=97=A7=E5=B0=8F = bi_fld:=E5=B0=8F=E8=AF=B4)~2))~0.01 () If i use a non-CJK query string, with the same field: args sent in: q=3D{!qf=3Dbi_fld}foo bar&pf=3D&pf2=3D&pf3=3D debugQuery: {!qf=3Dbi_fld}foo bar {!qf=3Dbi_fld}foo bar (+((DisjunctionMaxQuery((bi_fld:foo)~0.01) = DisjunctionMaxQuery((bi_fld:bar)~0.01))~2))/no_coord +(((bi_fld:foo)~0.01 = (bi_fld:bar)~0.01)~2) Why are the parsedquery_toString formula different? And is there any = difference in the actual relevancy formula? =20 How can you tell the difference between the MinNrShouldMatch and a qs or = ps or tie value, if they are all represented as ~n in the parsedQuery = string? To try to get a handle on qs, ps, tie and mm: args: q=3D{!qf=3Dbi_fld pf=3Dbi_fld}"a b" c d&qs=3D5&ps=3D4 debugQuery: {!qf=3Dbi_fld pf=3Dbi_fld}"a b" c d {!qf=3Dbi_fld pf=3Dbi_fld}"a b" c d (+((DisjunctionMaxQuery((bi_fld:"a = b"~5)~0.01) DisjunctionMaxQuery((bi_fld:c)~0.01) = DisjunctionMaxQuery((bi_fld:d)~0.01))~3) DisjunctionMaxQuery((bi_fld:"c = d"~4)~0.01))/no_coord +(((bi_fld:"a b"~5)~0.01 = (bi_fld:c)~0.01 (bi_fld:d)~0.01)~3) (bi_fld:"c d"~4)~0.01 I get that qs, the query slop, is for explicit phrases in the query, so = "a b"~5 makes sense. I also get that ps is for boosting of phrases, = so I get (bi_fld:"c d"~4) =E2=80=A6 but where is = (cjk_uni_pub_search:"a b c d"~4) ? Using dismax (instead of edismax): args: q=3D{!dismax qf=3Dbi_fld pf=3Dbi_fld}"a b" c d&qs=3D5&ps=3D4 debugQuery: {!dismax qf=3Dbi_fld pf=3Dbi_fld}"a b" c = d {!dismax qf=3Dbi_fld pf=3Dbi_fld}"a b" c = d (+((DisjunctionMaxQuery((bi_fld:"a = b"~5)~0.01) DisjunctionMaxQuery((bi_fld:c)~0.01) = DisjunctionMaxQuery((bi_fld:d)~0.01))~3) DisjunctionMaxQuery((bi_fld:"a = b c d"~4)~0.01))/no_coord +(((bi_fld:"a b"~5)~0.01 = (bi_fld:c)~0.01 (bi_fld:d)~0.01)~3) (bi_fld:"a b c d"~4)~0.01 So is this an edismax bug? FYI, I am running Solr 4.4. I have fields defined like so: The request handler uses edismax: edismax : 6<-1 6<90% 1 0= --Apple-Mail=_2EAF297E-122F-4335-AA6B-23C3E5E88839--