Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3250 invoked from network); 2 Mar 2007 18:07:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 18:07:58 -0000 Received: (qmail 60015 invoked by uid 500); 2 Mar 2007 18:07:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 59972 invoked by uid 500); 2 Mar 2007 18:07:58 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 59961 invoked by uid 99); 2 Mar 2007 18:07:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 10:07:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of markrmiller@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 10:07:45 -0800 Received: by wx-out-0506.google.com with SMTP id i29so854559wxd for ; Fri, 02 Mar 2007 10:07:25 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=f2ojAQHJve72egv6PtMuT+m4JROEYxDGDWxOtht0RQEZ+QmuBjOpevpCW0xpotj1otzDtSY+TxgU+Gy0vG1sLSauOQH1JCIi5tPqY5lyivCY0ifXmZFwZU+QiLxrCTkWO2gm3Ne23VAcqLfoSdPGNggLOggH59ZYIFCVmo7bGbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ZFPhIkvJW1SiVyZ1BifEJBBkcKcU1/bNbIODC47HKzNJyZ8qa1smGiFPuWHTuBq+7qGHS+EWCTbnXUGqB8bKGJYj1xUvdJE4Z3lVLdR22bijIP8pKUTC7/MJqUES5JJhb3Zwmw37kBqSQroZ5zwiPoDN8yq1+Q2Sdj8M2GRo8kI= Received: by 10.90.75.10 with SMTP id x10mr3205795aga.1172858844937; Fri, 02 Mar 2007 10:07:24 -0800 (PST) Received: from ?192.168.1.105? ( [216.66.114.42]) by mx.google.com with ESMTP id 3sm4632864wrh.2007.03.02.10.07.23; Fri, 02 Mar 2007 10:07:24 -0800 (PST) Message-ID: <45E867B5.60406@gmail.com> Date: Fri, 02 Mar 2007 13:06:45 -0500 From: Mark Miller User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Can Highlighter handle multiple word terms? References: <3FB08D6A21B3EC4D8749EF6D9E626278F6F145@WDCCPMAIL01.markettools.com> In-Reply-To: <3FB08D6A21B3EC4D8749EF6D9E626278F6F145@WDCCPMAIL01.markettools.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What fragment size are you using? Have you tried the null fragmenter? Are you using the QueryScorer that you can pass a field name to restrict highlighting to a certain field? Do you have any example code of what you are attempting? Have you looked at the test code for examples of how to use the Highlighter? - Mark Andreas Guther wrote: > Hi, > > > > I am using the Highlighter class to highlight my search results. So far > my observation is that the Highlighter does not highlight terms with > multiple words in it. > > > > For example if I have a text like "This is an example text for the > highlighter" and my search term is "example highlighter" than I would > expect to get back from the Highlighter the following: "This is an > example text for the highlighter". So far the highlighter > only returns an empty String. I am passing in the StandardAnalyzer. > > > > It also looks to me as if the Highlighter cannot handle a term like > "contents:example". > > > > > > I wonder if I am missing here something or if this is a limitation of > the Highlighter. > > > > > > Can some one enlighten me? > > > > Andreas > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org