I have several different types of documents in solr and I want the fieldNorm score to be different based on the document. Specifically docs of type User always get a fieldNorm score of 1 while everything else gets their normal score. I've figured out how to globally change the fieldNorm score by overriding the method computeNorm in DefaultSimilarity, but this happens at index time. Can I change the value based on the doc type from inside ComputeNorm or is there a better way I should be doing this? Ideally if I could know at runtime what the doctype is and override the fieldNorm, that would be best. I'd appreciate any help on this.
Jason