Re: Using highlighter

2008-05-29 Thread Mark Miller
Vinicius Carvalho wrote: Hello there! When I use an wildcard with my query, for instance: java*. Lucene finds the document, but when using the highlighter, the getBestFragment() is returning null for a fragment that contains the word javadoc for instance. Is it possible to use the hightlighter wi

Using highlighter

2008-05-29 Thread Vinicius Carvalho
Hello there! When I use an wildcard with my query, for instance: java*. Lucene finds the document, but when using the highlighter, the getBestFragment() is returning null for a fragment that contains the word javadoc for instance. Is it possible to use the hightlighter with wildcards? One option I

Using Highlighter to return search results

2008-05-03 Thread syedfa
long end=new Date().getTime(); System.err.println("Found " + hits.length() + " document(s)(in" + (end-start) + " milliseconds) that matched query '" + q + "':");

Re: Using Highlighter to highlight entire HTML documents?

2005-05-25 Thread Dan Funk
I wrote a very simple sax parser for our xml content - I check for the search tokens (analyzer.tokenStream) in the text and place a span tag around each found token. This process could work well with xhtml as well. In other words, I could never get the highlighter to do what I wanted to

Re: Using Highlighter to highlight entire HTML documents?

2005-05-24 Thread markharw00d
Fred Toth wrote: Hi, We have a need to present HTML documents with all search terms highlighted. Everything I've seen regarding the Highlighter code seems to point to the typical case of extracting relevant fragments from the text for presentation of hit lists. If you dont want to fragment yo

RE: Using Highlighter to highlight entire HTML documents?

2005-05-24 Thread Will Allen
The challenge with this is always not breaking the HTML page itself. -Original Message- From: Fred Toth [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 3:47 PM To: java-user@lucene.apache.org Subject: Using Highlighter to highlight entire HTML documents? Hi, We have a need to

Using Highlighter to highlight entire HTML documents?

2005-05-24 Thread Fred Toth
Hi, We have a need to present HTML documents with all search terms highlighted. Everything I've seen regarding the Highlighter code seems to point to the typical case of extracting relevant fragments from the text for presentation of hit lists. Is it possible to use the core highlighting code to