Hi Karl, Thanks for the suggestions, i would be glad to contribute back to the project.
i'm not too familiar with the inner workings of Lucene though; how does such a functionality feature in a Query implementation? My naive interpretation, when i first got hold of Lucene, is that Query is what you want to search, then the Searcher would do the work, against the Directory which contains the indexed materials, producing Hits which contains search results. So my initial (also naive) thought was that Hit would contain what i wanted (the found term). Regards, Edwin > Date: Tue, 22 Apr 2008 11:57:03 +0200 > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Re: How to Retrieve Found Term? > > I can think of two ways to get your hands on this information, simplest > one beeing you creating a filter with the documents that mached your > original query and then place new queries on the index with slop, non > slop, et c to find out whats what. This will of couse be very expensive > and is thus only an interesting solution for you if the response time is > good enough. > > The second and cleaner solution is to create your custom Query(ies) or > hack the Weight of the queries you are currently using and have them > store this information when matching. A good implementation of this > would probably be a welcomed contribution to the project. _________________________________________________________________ Get your free suite of Windows Live services today! http://www.get.live.com/wl/all