How to map terms to frequencies for a doc - ?

2006-02-07 Thread Dmitry Goldenberg
Hello, Given a query, I want to be able to, for each query term, get the number of occurrences of the term. I have tried what I'm including below and it does not seem to provide reliable results. Seems to work fine with exact matching but as soon as stemming kicks in, all bets are off as to v

Urgent issue with custom Directory/IndexInput/IndexOutput

2006-01-20 Thread Dmitry Goldenberg
Hello, I'm having trouble getting a custom Directory to work, keep getting exceptions in org.apache.lucene.store.BufferedIndexInput.refill (stack attached below). Could someone review the code below and tell me what I'm doing wrong? Any pointers would be greatly appreciated. - Dmitry ===