On Mon, Aug 22, 2011 at 8:10 PM, Chris Hostetter <hossman_luc...@fucit.org> wrote: > > : One simple way of doing this is maybe to write a wrapper for TermQuery > : that only returns docs with a Term Frequency > X as far as I > : understand the question those terms don't have to be within a certain > : window right? > > I don't think you could do it as a Query Wrapper -- it would have to be a > Scorer wrapper, correct?
A query wrapper boils down to a scorer. if you don't want to change lucene source you should simply write your own query wrapper. simon > > That's the approach rmuir and i were discussing on friday, and i just > posted a patch of the "guts" that could use some review... > > https://issues.apache.org/jira/browse/LUCENE-3395 > > ..the end goal would be options in TermQuery that would cause it to > automaticly wrap it's Scorer in one of these, ala.. > > TermQuery q = new TermQuery(new Term("foo","bar")); > q.setMinFreq(4.0f); > q.setMaxFreq(1000.0f); > > ...and in solr, options for this could be added to the {!term} parser... > > q={!term f=foo minTf=4.0 maxTf=1000.0}bar > > (could maybe add syntax to the regular query parser, but i think our > strategic meta-character reserves are dangerously low) > > > -Hoss >