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 2DF2B7644 for ; Mon, 7 Nov 2011 11:48:15 +0000 (UTC) Received: (qmail 45276 invoked by uid 500); 7 Nov 2011 11:48:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 45171 invoked by uid 500); 7 Nov 2011 11:48:13 -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 45151 invoked by uid 99); 7 Nov 2011 11:48:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 11:48:13 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Mon, 07 Nov 2011 11:48:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1172238391 for ; Mon, 7 Nov 2011 11:47:52 +0000 (UTC) Date: Mon, 7 Nov 2011 11:47:52 +0000 (UTC) From: "Koji Sekiguchi (Updated) (JIRA)" To: dev@lucene.apache.org Message-ID: <1603066582.6414.1320666472082.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-1926) add hl.q parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koji Sekiguchi updated SOLR-1926: --------------------------------- Attachment: SOLR-1926.patch Added localParams test for hl.q parameter. I'll commit soon. > add hl.q parameter > ------------------ > > Key: SOLR-1926 > URL: https://issues.apache.org/jira/browse/SOLR-1926 > Project: Solr > Issue Type: Improvement > Components: highlighter > Affects Versions: 1.4 > Reporter: Koji Sekiguchi > Assignee: Koji Sekiguchi > Priority: Trivial > Fix For: 3.5, 4.0 > > Attachments: SOLR-1926.patch, SOLR-1926.patch, SOLR-1926.patch, SOLR-1926.patch, SOLR-1926.patch > > > If hl.q parameter is set, HighlightComponent uses it rather than q. > Use case: > You search "PC" with highlight and facet capability: > {code} > q=PC > &facet=on&facet.field=maker&facet.field=something > &hl=on&hl.fl=desc > {code} > You get a lot of results with snippets (term "PC" highlighted in desc field). Then you click a link "maker:DELL(50)" to narrow the result: > {code} > q=PC > &facet=on&facet.field=something > &fq=maker:DELL > &hl=on&hl.fl=desc > {code} > You'll get narrowed result with term "PC" highlighted snippets. But, sometimes I'd like to see "DELL" to be highlighted as well, because I clicked "DELL". In this case, hl.q can be used: > {code} > q=PC > &facet=on&facet.field=something > &fq=maker:DELL > &hl=on&hl.fl=desc&*hl.q=PC+maker:DELL* > {code} > Note that hl.requireFieldMatch should be false (false is default) in this scenario. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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