From: Joe W. <jo...@gm...> - 2010-06-17 10:47:22
|
Hi Ben, Thanks for the additional info. I'm afraid that when we enter Java territory we've gone beyond my knowledge of eXist. My hunch is that you'll need to add a function to the lucene module to retrieve the Lucene document id of the selected match. Check out extensions/indexes/lucene/src/org/exist. Let the list know if you have any questions. Cheers, Joe On Wed, Jun 16, 2010 at 7:09 AM, Ben Steichen <ben...@cs...> wrote: > Hi Joe, > > Thanks again for the quick reply. I retrieve documents initially from > within eXist using an XQuery. Later on, some of these initial hits > will be marked as relevant, which will then be used for Query > Expansion. This module will be written in Java, using existing > Lucene/Query Expansion libraries. The problem is that when giving the > Query Expansion module the information on which documents are > relevant, I need to refer to the document id in the Lucene index (I'm > reusing the same index in XQuery and in Java). > > I hope there is some way I can get the Lucene index ids in my initial > XQuery, so that I can use these ids later on in my Java Query > Expansion module. > > Best regards, > > Ben > > > > On Wed, Jun 16, 2010 at 11:45 AM, Joe Wicentowski <jo...@gm...> wrote: >> Hi Ben, >> >>> Thanks very much for the reply. Is this id the internal eXist id? I'd >>> be looking for the id of the document in the Lucene index. I'm trying >>> to use the index with a query expansion module, but for that I need to >>> be able to get the id of the document in the Lucene index. >> >> The functions I listed aren't Lucene index-oriented. I don't think >> there is an XQuery function in eXist that gets the id of the document >> in the Lucene index. >> >> Are you writing your module in Java or XQuery? Any other info that >> you think would help folks guide you? >> >> Cheers, >> Joe >> > |