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 8D94F5F0 for ; Fri, 29 Apr 2011 13:08:19 +0000 (UTC) Received: (qmail 405 invoked by uid 500); 29 Apr 2011 13:08:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 198 invoked by uid 500); 29 Apr 2011 13:08:18 -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 191 invoked by uid 99); 29 Apr 2011 13:08:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 13:08:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 13:08:11 +0000 Received: by qwj9 with SMTP id 9so2477512qwj.35 for ; Fri, 29 Apr 2011 06:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=0go7S2qyNnH2RGrem+h1VtOWPmfygoHvfHaTXuHm91A=; b=gLGuWD6uXq2vWJbqsIzpkxu2qFnlD4wcgHoz4Fmj/4qOo34hUD1i+pIWQl2YQEHyjJ Bqht+IUsHPYoxAfqq7hpXDAactshTWj3QX+59V3N5vVFTPaoUzTNXXerhlKzGtaH0PmW KlkfME88f8HmkSsJfVm8Bow1gSza54MqX+epw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xK8PiV5vUBwM2i0r/RgBtN80B7iRFyW84yTVDWTKx2ceqCqgVHnmWqdg8wPI6QbWog clbwYdzIksE27Q1+aSByFHVKd3n0kX3m2kW/fncBIm33t1+M+LevwdzABVwXr8oVkKYe DCi0mgQhoBmBH25U0/WZAQcC0PJnUbdJUpQtQ= MIME-Version: 1.0 Received: by 10.229.77.139 with SMTP id g11mr3742081qck.9.1304082471005; Fri, 29 Apr 2011 06:07:51 -0700 (PDT) Received: by 10.229.245.81 with HTTP; Fri, 29 Apr 2011 06:07:50 -0700 (PDT) In-Reply-To: <1304081802.7259.14.camel@HeartTouching> References: <1304081802.7259.14.camel@HeartTouching> Date: Fri, 29 Apr 2011 09:07:50 -0400 Message-ID: Subject: Re: Highlighting in fields other than content From: Erick Erickson To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org What is your field definition for "keyword"? In particular, is it stored? This page might help. http://wiki.apache.org/solr/FieldOptionsByUseCase?highlight=3D%28termvector= %29|%28retrieve%29|%28contents%29 Best Erick On Fri, Apr 29, 2011 at 8:56 AM, Pavel Kuka=E8ka = wrote: > Hello, > > =A0 =A0 =A0 =A0I've got a (probably trivial) issue I can't resolve with S= olr 3.1: > I have a document with common fields (title, keywords, content) and I'm > trying to use highlighting. > =A0 =A0 =A0 =A0With the content field there is no problem; works normally= . However, > when I search for a document via its keyword, the document is found, but > the response doesn't have the highlighted snippet - there is only an > empty node - like this: > ****************** > . > . > . > > =A0 > > > ************************ > > As for the highlighting params, I have set: > =A0 =A0 =A0 =A0hl=3Don > =A0 =A0 =A0 =A0hl.fl=3D* > > > If I just substitute the searchterm for something from the content, the > resulting response is fine - like this: > ************************************ > . > . > . > > =A0 > =A0 =A0 > =A0ustanovení těchto VOP, ZOP, smlouvy či =A0 id=3D"highlighting">družstvem na straně jedné a > Klienty na straně druhé > na jiného > =A0 =A0 > . > . > . > ************************************ > > Does anyone see what I've omitted? > > Cheers, > Pavel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org