On Tue, 2012-12-04 at 17:30 +0530, madan mp wrote:
> I am working with lucene 3.6 ,I am trying to use the highlighter 3.6 in my
> search engine code, can you pls provide me full code for highlighting the
> termspls..pls
>
>
> regards
> madan
Hi,
not a complete example, but you can play
Hi
> Thanks for your useful comments:
>
> here I could do what I want with the highlighter which work with lucene 3:
>
> QueryScorer scorer = new QueryScorer(query, reader, "contents");
> Highlighter highlighter = new Highlighter(scorer);
>
> String fragment = highlighter.g
find this jar. Is it available online?
Thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/lucene-highlighter-tp3522464p3522652.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
even with minor versions,
as it's not covered by the strict backwards compatibility of the Lucene Core.
So best is to review the javadocs of 2.4, 2.9 and 3.0, too.
> I checked the class path and there were no old version of lucene only:
> lucene-highlighter-3.0.3.jar and lucene-cor
Hi Uwe,
Thanks for your answer. I am using now lucene-highlighter-3.0.3 but the
problem I have this error:
“SpanScorer can’t be resolved as a type”
> SpanScorer scorer = new SpanScorer(query, fieldName, new
> CachingTokenFilter(stream));
I checked the class path and there were
...@thetaphi.de
> -Original Message-
> From: starz10de [mailto:farag_ah...@yahoo.com]
> Sent: Sunday, November 20, 2011 10:53 AM
> To: java-user@lucene.apache.org
> Subject: lucene highlighter
>
> Hi,
>
> I have a problem with lucene highlighter. I couldn’t mak
Hi,
I have a problem with lucene highlighter. I couldn’t make it run. The
compilation is without error but when I run it I got this error “Exception
in thread "main"
java.lang.NoSuchMethodError:org.apache.lucene.analysis.TokenStream.next(Lorg/apache/lucene/analysis/Token;)Lorg/apa
hi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Peng Yu [mailto:pengyu...@gmail.com]
> Sent: Saturday, September 26, 2009 2:25 PM
> To: java-user@lucene.apache.org
> Subject: Re: Where to download lucene-analyzers and lucene-highlighter?
>
> Is there a
-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Peng Yu [mailto:pengyu...@gmail.com]
> Sent: Saturday, September 26, 2009 2:16 PM
> To: java-user@lucene.apache.org
> Subject: Re: Where to download lucene-analyzers and luc
ar
> lucene-2.4.0/contrib/analyzers/*.jar
>
> - Original Message -
> From: "Peng Yu"
> To: java-user@lucene.apache.org
> Sent: Saturday, 26 September, 2009 12:11:02 GMT +00:00 GMT Britain, Ireland,
> Portugal
> Subject: Where to download lucene-analyzers an
;> -Original Message-
>> From: Peng Yu [mailto:pengyu...@gmail.com]
>> Sent: Saturday, September 26, 2009 2:03 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: Where to download lucene-analyzers and lucene-highlighter?
>>
>> Hi,
>>
>> I am w
Hi,
I don't see where I can download lucene-analyzers.jar and
lucene-highlighter.jar? Can somebody show me?
Regards,
Peng
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-us
> > -
>> > Uwe Schindler
>> > H.-H.-Meier-Allee 63, D-28213 Bremen
>> > http://www.thetaphi.de
>> > eMail: u...@thetaphi.de
>> >
>> >> -Original Message-
>> >> From: Peng Yu [mailto:pengyu...@gmail.com]
>> &g
+00:00 GMT Britain, Ireland,
Portugal
Subject: Where to download lucene-analyzers and lucene-highlighter?
Hi,
I don't see where I can download lucene-analyzers.jar and
lucene-highlighter.jar? Can somebody show me?
Regards,
Peng
-
PM
> To: java-user@lucene.apache.org
> Subject: Re: Where to download lucene-analyzers and lucene-highlighter?
>
> Hi,
>
> I am wondering how I should install the .jar files. I don't find an
> install script. Shall I manually copy them to some directory? Which
> directory shou
ax.servlet.ServletException: #{suggestBox.Search}:
javax.faces.el.EvaluationException: java.lang.LinkageError: Class
org/apache/lucene/search/Query violates loader constraints
javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(Bas
harwood <[EMAIL PROTECTED]> wrote:
>
> >>How can i adjust the lucene highlighter to make sure
> >> that atleast each term is displayed in the query
> result
>
>
> First some, basic things to sanity check:
>
> * A classic problem: are you using compatible
>>How can i adjust the lucene highlighter to make sure
>> that atleast each term is displayed in the query
result
First some, basic things to sanity check:
* A classic problem: are you using compatible
analyzers for tokenizing the query and the document
content (both index time a
Hi guys
If anyone can tell me how to get the best fragments using the highligher
The query has two terms - term1 and term2
The search result display only term1 in the highlighter whereas term2 is
also there. How can i adjust the lucene highlighter to make sure that
atleast each term is
Hi Johan,
To avoid selecting fragments see here:
http://www.mail-archive.com/java-user@lucene.apache.org/msg01097.html
Be aware though that the highlighter is really
designed to decorate plain-text by adding highlight
tags - if your text already includes any HTML mark-up
it becomes hard to correct
Dear list,
I try to use the Term Highlighter in my webapp but I have a problem. I want
to highlight the terms in a text without extracting the most relevant
sections.
The highlighting works but the last characters are trimmed !
Here is a portion of my code :
Analyzer analyzer = new Standa
21 matches
Mail list logo