You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Greg Bowyer (JIRA)" <ji...@apache.org> on 2012/06/16 01:02:44 UTC

[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable

     [ https://issues.apache.org/jira/browse/SOLR-3553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Bowyer updated SOLR-3553:
------------------------------

    Attachment: SOLR-3553-Inheritable-schema-elements.patch

Rough attempt at making schema elements inheritable, probably broken in ways I cant see yet
                
> Make solr Plugins (FieldType, Analyser etc) be inheritable
> ----------------------------------------------------------
>
>                 Key: SOLR-3553
>                 URL: https://issues.apache.org/jira/browse/SOLR-3553
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Greg Bowyer
>         Attachments: SOLR-3553-Inheritable-schema-elements.patch
>
>
> During defining an experimental schema for trialling all the combinations of scoring models for lucene 4 it struck me how much duplication is involved in the schema xml
> Using the current schema I am working with as an example, 
> {code:xml}
> <fieldType name="text" class="solr.TextField" 
>     positionIncrementGap="100" 
>     autoGeneratePhraseQueries="true">
>     <analyzer type="index">
>         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>         
>         <filter class="solr.TrimFilterFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>         <filter class="solr.WordDelimiterFilterFactory"
>            generateWordParts="1" generateNumberParts="1"
>            catenateWords="0" catenateNumbers="1"  catenateAll="0" 
>            splitOnCaseChange="1" splitOnNumerics="0"
>            stemEnglishPossesive="0" preserveOriginal="0" />
>         <filter class="solr.ASCIIFoldingFilterFactory"/>
>         <filter class="solr.StopFilterFactory" 
>            ignoreCase="true" words="stopwords.txt"
>            enablePositionIncrements="true" />
>         
> ... And so on
> {code}
> What I would like to be able to say is
> {code:xml}
> <fieldType name="text_bm25" parent="text">
>      <similarity class="solr.BM25SimilarityFactory">
>         <float name="k1">1.2</float>
>         <float name="b">0.76</float>
>     </similarity>
> </fieldType>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org