Relevance Feedback

2002-03-29 Thread Nathan G. Freier
Hello, I'm a graduate student in the Information School at the University of Washington. I'm currently in the process of developing a prototype online IR system and I have been making use of Lucene's API. I'm just beginning to plan out some mechanisms for query expansion and relevance

Re: Relevance Feedback

2002-03-29 Thread Steven J. Owens
On Fri, Mar 29, 2002 at 12:11:03PM -0800, Joshua O'Madadhain wrote: On Fri, 29 Mar 2002, Nathan G. Freier wrote: I'm just beginning to plan out some mechanisms for query expansion and relevance feedback. I've also been doing research in IR using the Lucene API. [...] If you'd like to

Getting the terms that matched the HitDoc?

2002-03-29 Thread Robert A. Decker
I've been looking around the org.apache.lucene.search.* code and can't seem to find an answer to this. I would like to present the terms that matched for each document in the Hits. For example, to the user it would look like: *** Search

Re: Relevance Feedback

2002-03-29 Thread Nathan G. Freier
[If this conversation is off-topic for this list, we can move it offline but I figure since at least one other is interested I'll keep it here for now.] Thanks for the reply, Joshua. I'm really just beginning my studies in IR so forgive any niavete. Please see my comments below. I've also

Re: Getting the terms that matched the HitDoc?

2002-03-29 Thread Nathan G. Freier
Hi Rob, One possibility might be to use the IndexReader's termDocs(Term) method and then use the skipTo(int) method on the TermDocs object. Iterate over your document list and then your term list for each document. Each time skipTo puts you at the document you are looking for, you can add

Re: Getting the terms that matched the HitDoc?

2002-03-29 Thread Nathan G. Freier
Sorry... That should be: 1) iterate over your term list 2) for each term, iterate over your document list using the document number in the skipTo() method 3) if skipTo puts you on the current document, add term to (document,term) list Nathan Nathan G. Freier wrote: Hi Rob, One

Re: Getting the terms that matched the HitDoc?

2002-03-29 Thread Robert A. Decker
Thanks. This seems to work for stored fields (although I haven't completed all of the steps). However, I want it to work with an indexed, but unstored field, and I'm not getting anything back in my termDocs. There must be some way to do it because this information is what is being used in the