I have custom scoring written for certain docs. Since the scoring uses a combination of FieldNorm, td, idf, and other factors, I've modified some of those values to fit my scoring needs. The last issue I have now is that I'm not sure how to turn this on for the one doc type where this matters, I have the docs set by TYPE_ID = 1.
On Tue, Oct 4, 2011 at 8:40 AM, Robert Muir <[email protected]> wrote: > 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] > > -- - sent from my mobile 6176064373
