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
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
long end=new Date().getTime();
System.err.println("Found " + hits.length() + " document(s)(in" +
(end-start) + " milliseconds) that matched query '" + q + "':");
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
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
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
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