[ https://issues.apache.org/jira/browse/SOLR-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012792#comment-13012792 ]
Robert Muir commented on SOLR-2338: ----------------------------------- Hoss, thanks for looking at the patch. As far as the current form, Similarity is purely per-field, dictated by the schema (like Analyzers). For simplicity i removed the global one completely. If we want, the following options are available: * (global) <similarity/> configures the "default", which is used unless overridden by the fieldtype. * (global) <similarity/> triggers an error. The only reason I yanked it in the patch, was that I felt it could be confusing to have this "inheritance" so to speak... but if you think its not confusing, we could support the global <similarity/>, which would always be used unless you supply a different <similarity/> for a specific field. > improved per-field similarity integration into schema.xml > --------------------------------------------------------- > > Key: SOLR-2338 > URL: https://issues.apache.org/jira/browse/SOLR-2338 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis > Affects Versions: 4.0 > Reporter: Robert Muir > Assignee: Robert Muir > Attachments: SOLR-2338.patch, SOLR-2338.patch > > > Currently since LUCENE-2236, we can enable Similarity per-field, but in > schema.xml there is only a 'global' factory > for the SimilarityProvider. > In my opinion this is too low-level because to customize Similarity on a > per-field basis, you have to set your own > CustomSimilarityProvider with <similarity class=.../> and manage the > per-field mapping yourself in java code. > Instead I think it would be better if you just specify the Similarity in the > FieldType, like after <analyzer>. > As far as the example, one idea from LUCENE-1360 was to make a "short_text" > or "metadata_text" used by the > various metadata fields in the example that has better norm quantization for > its shortness... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org