[ https://issues.apache.org/jira/browse/LUCENE-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982872#action_12982872 ]
Doron Cohen commented on LUCENE-2236: ------------------------------------- {quote} well my concern about the deprecated methods is we get into the hairy backwards compat situation... It might be ok to essentially fix Similarity to be the way we want for 4.0 (break it) since its an expert API anyway. This patch was just a quick stab... I definitely agree with you about the name though, i prefer Similarity. {quote} So let's keep that name (Similarity) :) {quote} Well honestly I think what you are saying is really needed for the future {quote} Ok one step at a time makes sense.. so it means that fieldName parameters remain, although the Similarity object is created per given field, well, ok, another day... {quote} Similarity would need to be able to 'setup' a query (e.g. things like IDF, building score caches for the query, whatever), and then also score an individual document. {quote} Interesting... (flexible-scoring and bulk-postings works are still unknowns to me.) So Similarity is not only per field but also per query/scorer.. and Query would have an abstract method getSimilarityProvider(fieldName) which would be implemented by each concrete query, neatly separating finding matches from scores computation, and allowing more extendable scoring. Nice. Also, perhaps what seems to be like an inflation of Similarity objects (per query per field) is one more good reason to keep the field name params for now. > 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 > Attachments: 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