Re: Can TermDocs.skipTo() go backwards

2008-08-28 Thread Michael McCandless
Antony Bowesman wrote: Michael McCandless wrote: Ahh right, my short term memory failed me ;) I now remember this thread. Excused :) I expect you have real work to occupy your mind! Well, understanding how people are pushing Lucene *is* the real work ;) This is exactly how Lucene grow

Re: Can TermDocs.skipTo() go backwards

2008-08-27 Thread Antony Bowesman
Michael McCandless wrote: Ahh right, my short term memory failed me ;) I now remember this thread. Excused :) I expect you have real work to occupy your mind! Yes, though LUCENE-1231 (column stride stored fields) should help this. I see from JIRA that MB has started working on this - It's

Re: Can TermDocs.skipTo() go backwards

2008-08-27 Thread Michael McCandless
Antony Bowesman wrote: Michael McCandless wrote: TermDocs.skipTo() only moves forwards. Can you use a stored field to retrieve this information, or do you really need to store it per-term-occurrence in your docs? I discussed my use case with Doron earlier and there were two options, eith

Re: Can TermDocs.skipTo() go backwards

2008-08-27 Thread Antony Bowesman
Michael McCandless wrote: TermDocs.skipTo() only moves forwards. Can you use a stored field to retrieve this information, or do you really need to store it per-term-occurrence in your docs? I discussed my use case with Doron earlier and there were two options, either to use payloads or stor

Re: Can TermDocs.skipTo() go backwards

2008-08-27 Thread Michael McCandless
TermDocs.skipTo() only moves forwards. Can you use a stored field to retrieve this information, or do you really need to store it per-term-occurrence in your docs? Mike Antony Bowesman wrote: I have a custom TopDocsCollector and need to collect a payload from each final document hit. Th