Re: Lucene 4.0 getTermFreqVector and TermVectorMapper

2012-03-23 Thread Michael McCandless
Hi, The equivalent in trunk is IndexReader.getTermVectors. It returns a Fields instance, just like "normal" postings (IndexReader.fields()), except it's postings for just a single document. So, you can pull a specific field, iterate the terms, get the positions/offsets, etc. I'll update MIGRATE

Re: ToParentBlockJoinQuery query loop finitely

2012-03-23 Thread Li Li
that's fine. thank you. On Fri, Mar 23, 2012 at 7:30 PM, Martijn v Groningen < martijn.v.gronin...@gmail.com> wrote: > Hi, > > There is an example usage in the package.html. > Something to keep in mind is that this search time join is different than > block join query. The JoinUtil can be used to

Re: ToParentBlockJoinQuery query loop finitely

2012-03-23 Thread Martijn v Groningen
Hi, There is an example usage in the package.html. Something to keep in mind is that this search time join is different than block join query. The JoinUtil can be used to do join filtering and the block join is more meant for parent / child search. Martijn On 23 March 2012 11:58, Li Li wrote:

Re: ToParentBlockJoinQuery query loop finitely

2012-03-23 Thread Li Li
thank you. is there any the search time join example? I can only find a JoinUtil in package org.apache.lucene.search.join and a TestJoinUtil in test package. On Fri, Mar 23, 2012 at 6:24 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > I think you're hitting the exception because you

Re: ToParentBlockJoinQuery query loop finitely

2012-03-23 Thread Michael McCandless
I think you're hitting the exception because you passed trackScores=true to ToParentBlockJoinCollector. If you do that, the ScoreMode cannot be None... I'll update the javadocs to make this clear, and I'll also fix the exception message. I think you're hitting the infinite loop because your paren