On Tue, Oct 4, 2011 at 8:31 AM, Jason Toy <[email protected]> wrote: > 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.
Why would some documents have length normalization and others not? This doesn't seem like a great idea... -- lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
