[ https://issues.apache.org/jira/browse/LUCENE-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-2236: -------------------------------- Attachment: LUCENE-2236.patch Here's an updated patch, now that some cleanup work has been committed separately, its easier to manage. I kept the original name Similarity: I definitely like this better, and tried to clean up the patch to make it committable. If this patch is ok, I would prefer to make a follow-up issue to make it easier to use per-field Similarity with a Solr schema file. Currently Solr lets you specify the index-wide Similarity; with this patch, this can be customized per-field, but you have to manage this in your java implementation. In my opinion, it would be better to have more declarative schema integration, especially if we get scoring going with more flexibility. > Similarity can only be set per index, but I may want to adjust scoring > behaviour at a field level > ------------------------------------------------------------------------------------------------- > > Key: LUCENE-2236 > URL: https://issues.apache.org/jira/browse/LUCENE-2236 > Project: Lucene - Java > Issue Type: Improvement > Components: Query/Scoring > Affects Versions: 3.0 > Reporter: Paul taylor > Assignee: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-2236.patch, LUCENE-2236.patch > > > Similarity can only be set per index, but I may want to adjust scoring > behaviour at a field level, to faciliate this could we pass make field name > available to all score methods. > Currently it is only passed to some such as lengthNorm() but not others such > as tf() -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org