Feels a bit of a hack, but you might be able to make it work by storing the field name when MyPerFieldxxx.get(name) is called and using that in MyPerFieldxxx.queryNorm() and coord() calls to do the right thing, either inline or via the relevant Similarity subclass, identified by the name.
-- Ian. On Thu, Nov 8, 2012 at 5:46 PM, Joel Barry <jmb...@gmail.com> wrote: >> coord() and queryNorm() work on the query as a whole, which may span >> multiple fields. > > Thanks for the response, but I'm still confused. In our use case, our > documents have two distinct types of fields, e.g. > > Document: > A-field1 > A-field2 > A-field3 > B-field1 > B-field2 > B-field3 > > In our application, we know that queries will hit only A-fields or > B-fields, never both in the same query. But we *do* want to have > different behavior for queryNorm() and coord() for the A and B > queries. > > Could you suggest a way to do this? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org