Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A99084676 for ; Sun, 3 Jul 2011 17:46:49 +0000 (UTC) Received: (qmail 34683 invoked by uid 500); 3 Jul 2011 17:46:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 34149 invoked by uid 500); 3 Jul 2011 17:46:47 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 33803 invoked by uid 99); 3 Jul 2011 17:46:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 17:46:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 17:46:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 19A9C443FED for ; Sun, 3 Jul 2011 17:46:22 +0000 (UTC) Date: Sun, 3 Jul 2011 17:46:22 +0000 (UTC) From: =?utf-8?Q?Juan_Antonio_Farr=C3=A9_Basurte_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <59847355.936.1309715182102.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <972174117.397.1309648821966.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2632) Highlighting does not work for embedded boost query that boosts a dismax query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2632?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Juan Antonio Farr=C3=A9 Basurte updated SOLR-2632: --------------------------------------------- Labels: _query_ boost dismax edismax embedded highlighting h= l.fl query (was: _query_ boost dismax embedded highlighting hl.fl query) Environment:=20 Linux. Reproduced in different machines with different Linux distributions and dif= ferent JDK's. Solr 3.3 and Lucidworks for solr 1.4.1 and 3.2. was: Linux. Reproduced in different machines with different Linux distributions and dif= ferent JDK's. Lucidworks for solr 1.4.1 and 3.2. Affects Version/s: 3.3 I've done some more testing. For the following query, using edismax, highli= ghting also fails in the same way: http://localhost:8983/solr/select?q=3D%2binStock:true%20%2b_query_:%22{!edi= smax%20boost=3D$dateboost%20v=3D$qq}%22&qq=3Dtest&qf=3Dname&q.alt=3D*:*&tie= =3D0.1&dateboost=3Drecip%28ms%28NOW,last_modified%29,3.16e-11,1,1%29&hl=3Dt= rue&hl.fl=3Dname While it works well for the following two queries: http://localhost:8983/solr/select?q=3D%2binStock:true%20%2b_query_:%22{!edi= smax%20v=3D$qq}%22&qq=3Dtest&qf=3Dname&q.alt=3D*:*&tie=3D0.1&dateboost=3Dre= cip%28ms%28NOW,last_modified%29,3.16e-11,1,1%29&hl=3Dtrue&hl.fl=3Dname http://localhost:8983/solr/select?q=3D{!edismax%20boost=3D$dateboost%20v=3D= $qq}%22&qq=3Dtest&qf=3Dname&q.alt=3D*:*&tie=3D0.1&dateboost=3Drecip%28ms%28= NOW,last_modified%29,3.16e-11,1,1%29&hl=3Dtrue&hl.fl=3Dname Also tested in solr 3.3 with the same results. > Highlighting does not work for embedded boost query that boosts a dismax = query > -------------------------------------------------------------------------= ----- > > Key: SOLR-2632 > URL: https://issues.apache.org/jira/browse/SOLR-2632 > Project: Solr > Issue Type: Bug > Components: highlighter > Affects Versions: 1.4.1, 3.2, 3.3 > Environment: Linux. > Reproduced in different machines with different Linux distributions and d= ifferent JDK's. > Solr 3.3 and Lucidworks for solr 1.4.1 and 3.2. > Reporter: Juan Antonio Farr=C3=A9 Basurte > Priority: Minor > Labels: _query_, boost, dismax, edismax, embedded, highlight= ing, hl.fl, query > > I need to issue a dismax query, with date boost (I'd like to use the mult= iplicative boost provided by boost queries) and also filtering for other fi= elds with too many possible distinct values to fit in a filter query. To ac= hieve this, I use the boost query as a nested query using the pseudofield _= query_. I also need highlighting for the fields used in the dismax query, b= ut highlighting does not work. If I just use the boosted dismax query witho= ut embedding it inside another query, it works correctly. If I use bf inste= ad of a boost query, and embed directly the dismax query, it works too, but= hl.fl needs to be specified. > It's a bit complicated to explain, so, I'll give examples using the examp= le data that comes with solr (the problem is reproducible in the example so= lr distribution, not only in my concrete project). > http://localhost:8983/solr/select?q=3D%2binStock:true%20%2b_query_:%22{!b= oost%20b=3D$dateboost%20v=3D$qq%20defType=3Ddismax}%22&qq=3Dtest&qf=3Dname&= dateboost=3Drecip%28ms%28NOW,last_modified%29,3.16e-11,1,1%29&hl=3Dtrue&hl.= fl=3Dname > For this query, highlighting does not work. Specifying hl.fl or not, does= not influence the result. The result is: > > > > > http://localhost:8983/solr/select?q=3D_query_:%22{!boost%20b=3D$dateboost= %20v=3D$qq%20defType=3Ddismax}%22&qq=3Dtest&qf=3Dname&dateboost=3Drecip%28m= s%28NOW,last_modified%29,3.16e-11,1,1%29&hl=3Dtrue&hl.fl=3Dname > This doesn't work either. Same result. > http://localhost:8983/solr/select?q=3D{!boost b=3D$dateboost v=3D$qq defT= ype=3Ddismax}&qq=3Dtest&qf=3Dname&dateboost=3Drecip(ms(NOW,last_modified),3= .16e-11,1,1)&hl=3Dtrue > In this case, hightlighting works correctly: > > > > Test with some GB18030 encoded characters > > > > > Test with some UTF-8 encoded characters > > > > http://localhost:8983/solr/select?q=3D%2BinStock:true%20%2B_query_:%22{!d= ismax%20v=3D$qq}%22&qq=3Dtest&qf=3Dname&bf=3Drecip%28ms%28NOW,last_modified= %29,3.16e-11,1,1%29&hl=3Dtrue&hl.fl=3Dname > This also works. Same result as before. But in this case hl.fl is needed.= Without it, highlighting does not work, either. > Thanks. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org