lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-614) lesser noise in solrconfig.xml
Date Fri, 04 Jul 2008 07:11:35 GMT

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

Noble Paul updated SOLR-614:
----------------------------

    Attachment: SOLR-614.patch

This patch can automatically make these representations equivalent. This is fully backward
compitible. 
* NamedList format: 1
{code:xml}
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  <lst name="spellchecker">
    <str name="name">default</str>
    <str name="classname">org.apache.solr.spelling.IndexBasedSpellChecker</str>
    <str name="field">spell</str>
    <str name="spellcheckIndexDir">./spellchecker</str>
  </lst>
  <lst name="spellchecker">
    <str name="name">jarowinkler</str>
    <str name="field">lowerfilt</str>
    <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
    <str name="spellcheckIndexDir">./spellchecker</str>
  </lst>
</searchComponent>
{code}
* NamedList Format : 2
{code:xml}
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  <spellchecker>
    <name>default</name>
    <classname>solr.IndexBasedSpellChecker</classname>
    <field>spell</field>
    <spellcheckIndexDir>./spellchecker</spellcheckIndexDir>
  </spellchecker>
  <spellchecker>
    <name>jarowinkler</name>
    <field>lowerfilt</field>
    <distanceMeasure>org.apache.lucene.search.spell.JaroWinklerDistance</distanceMeasure>
    <spellcheckIndexDir>./spellchecker</spellcheckIndexDir>
  </spellchecker>
</searchComponent >
{code}
*NamedList format :3
{code:xml}
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  <spellchecker name="default" 
                classname="solr.IndexBasedSpellChecker" 
                field="spell" spellcheckIndexDir="./spellchecker"/>
  <spellchecker name="jarowinkler" 
                field="lowerfilt" 
                distanceMeasure="org.apache.lucene.search.spell.JaroWinklerDistance"  
                spellcheckIndexDir="./spellchecker"/>
</searchComponent >
{code}




> lesser noise in solrconfig.xml
> ------------------------------
>
>                 Key: SOLR-614
>                 URL: https://issues.apache.org/jira/browse/SOLR-614
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>         Attachments: SOLR-614.patch
>
>
> All the components initialized by Solr have an init(NamedList args) initializer. This
leads us to writing the configuration needed for the component in the NamedList xml format.
People familiar with Solr may know the format but most of what is written is noise than information.
For users who are not familiar w/ the format find it too difficult to understand why they
have to write it this way. Moreover , it is not a very efficient way to configure .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message