Hmmm, I'm still not getting it... You have one or more lists. These lists change once a month or so. Are you trying to include or exclude the documents in these lists? And do the authors you want to include or exclude change on a per-query basis or would you be all set if you just had a filter that applied to all the authors on a particular list?
But I *think* what you want is a SearchComponent that implements your Filter. You can see various examples of how to add components to a seach handler in the solrconfig.xml file. WARNING: Haven't done this myself, so I'm partly guessing here. Although here's a hint that someone else has used this approach: http://www.mail-archive.com/solr-user@lucene.apache.org/msg54240.html And you'll want to insure that the Filter is cached so you don't have to compute it more than once. Best Erick On Thu, Aug 18, 2011 at 8:59 AM, Tomas Zerolo <tomas.zer...@axelspringer.de> wrote: > On Thu, Aug 18, 2011 at 08:36:08AM -0400, Erick Erickson wrote: >> How does this list of authors get selected? The reason I'm asking is >> I'm wondering >> if you can "define the problem away". In other words, I'm wondering if this >> is an XY problem (http://people.apache.org/~hossman/#xyproblem). > > :-) > >> I can't imagine you expect a user to specify up to 2k authors... > > Of course not for each individual query. > >> so there >> must >> be something programmatic going on here, perhaps you can index some clever >> information with the docs that'll make this more tractable... > > Alas, they do provide a list of names on a regular basis -- which comes from > an external source (which changes slowly and is provided, e.g. once a month). > > To be more precise there will be a couple of those lists. > > I don't see (yet) how to define the problem away, but I keep trying... > > Thanks for the nudge > -- tomás >