Hi Klaus,
I suggest you take a look at the code in TestCartesian.java for
working examples of the search and as a staring point to trace
through.
in more depth, if you look at DistanceQueryBuilder.java you'll see 2
filters are being setup.
The first pass filter is created by CartesianPolyFilterB
Another approach to stemming at index time but still providing exact matches
when requested is to index the stemmed version AND the original version at
the same position (think synonyms). But here's the trick, index the original
token with a special character. For instance, indexing "running" would
Thanks, everyone!
--- On Thu, 5/20/10, Herbert Roitblat wrote:
> From: Herbert Roitblat
> Subject: Re: Stemming and Wildcard Queries
> To: java-user@lucene.apache.org
> Date: Thursday, May 20, 2010, 4:48 PM
> At a general level, we have found
> that stemming during indexing is not advisable.
>
I'm trying to implement highlighting in my lucene application and I can't
get any fragment. getBestFragment always returns null.
My code:
QueryParser parser = new QueryParser(Version.LUCENE_30, "text",
myAnalyzer);
Query realQuery = parser.parse(query);
Highlighter highlighter = new