Re: Find similar documents of different types

2012-02-01 Thread Ian Lea
I'm not clear exactly what you are asking but I think you will have to build your TermQuery instances one at a time and that sounds fine, if it does what you want and is sufficiently fast. -- Ian. On Tue, Jan 31, 2012 at 1:34 PM, Pedro Lacerda wrote: > For the first strategy i'm using MoreLike

Re: Find similar documents of different types

2012-01-31 Thread Pedro Lacerda
For the first strategy i'm using MoreLikeThis to generate one query (from Doc terms) for each analyzed field (from type1 and type2), applying boosts and searching with TermsFilter to select only documents of type2. For the second I construct an map where boost is the tf-idf of Doc (using searcher