
markharw00d at yahoo
Jan 21, 2008, 3:02 PM
Post #3 of 3
(794 views)
Permalink
|
See BooleanQuery.setMinimumNumberShouldMatch. Add the addresses as "SHOULD" termQuery clauses and set minumumNumberShouldMatch to the required value. Cheers Mark > ----- Original Message ---- > From: Michael Prichard <michael_prichard [at] mac> > To: java-user [at] lucene > Sent: Monday, January 21, 2008 3:38:14 PM > Subject: Matching w/in X% ? > > Say I have a field of To addresses from an email archive. I do a > search and I get 10 To addresses for a single hit. Then I want to find > similar email with the To addresses containing roughly 75% of those email > addresses as well. How would I do this? > > In other words: > I get a result with: > To: foo [at] bar, foo2 [at] bar, foo3 [at] bar, foo4 [at] bar, > foo5 [at] bar, foo6 [at] bar > > Now I want to find similar emails with 75% of this addresses in the To > field..... > > Thanks! > Michael > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|