Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

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

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Jun 15, 2012, 4:02 PM

Post #1 of 7 (90 views)
Permalink
[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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 15, 2012, 4:26 PM

Post #2 of 7 (87 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

[ 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

Fixed a mistake making abstract required

> 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, 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 15, 2012, 9:20 PM

Post #3 of 7 (87 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

[ 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

> 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, SOLR-3553-Inheritable-schema-elements.patch, 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 18, 2012, 2:44 PM

Post #4 of 7 (82 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

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

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

Attachment: (was: SOLR-3553-Inheritable-schema-elements.patch)

> 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 18, 2012, 2:44 PM

Post #5 of 7 (80 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

[ 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

> 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 18, 2012, 2:44 PM

Post #6 of 7 (78 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

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

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

Attachment: (was: SOLR-3553-Inheritable-schema-elements.patch)

> 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Jun 18, 2012, 2:44 PM

Post #7 of 7 (78 views)
Permalink
[jira] [Updated] (SOLR-3553) Make solr Plugins (FieldType, Analyser etc) be inheritable [In reply to]

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

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

Attachment: (was: SOLR-3553-Inheritable-schema-elements.patch)

> 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 [at] lucene
For additional commands, e-mail: dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.