IDF across fields

Is there a way to calculate IDF,( or more specifically the document frequency) across fields? Suppose fields A and B contain the term "xyz" 50 and 60 times respectively. can the document frequency of "xyz" be calculated such that it is equal to 50+60=110?
Also, how can I disable IDF without disabling tf? I'm using default similarity.