Re: lucene highlighter

2012-12-04 Thread Nicola Buso
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

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
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

RE: lucene highlighter

2011-11-20 Thread starz10de
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.

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
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

RE: lucene highlighter

2011-11-20 Thread starz10de
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

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
...@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

lucene highlighter

2011-11-20 Thread starz10de
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

RE: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Uwe Schindler
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

RE: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Uwe Schindler
-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

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
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

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
;> -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

Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
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

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
> > - >> > 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

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Joel Halbert
+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 -

RE: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Uwe Schindler
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

Lucene Highlighter linkage Error

2007-07-25 Thread ki
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

Re: lucene highlighter

2006-03-22 Thread Raghavendra Prabhu
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

Re: lucene highlighter

2006-03-22 Thread mark harwood
>>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

lucene highlighter

2006-03-21 Thread Raghavendra Prabhu
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

Re: lucene highlighter

2005-06-23 Thread mark harwood
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

lucene highlighter

2005-06-23 Thread johan duflost
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