Re: spatial searches

2010-05-21 Thread Julian Atkinson
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

Re: Stemming and Wildcard Queries

2010-05-21 Thread Erick Erickson
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

Re: Stemming and Wildcard Queries

2010-05-21 Thread Ivan Provalov
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.  >

Highlighter in lucene doesn't return any fragment

2010-05-21 Thread Diego Campoy
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