Weekly Report 4 Gsoc @ Moodle

Week 4(26 june – 03 july)

After a lots of experiments with Solr schema. I came up with the final schema.xml this week. All the expected features like Intra-word delimiters, Fuzzy Search, Spell Checks etc.

So What’s Inside?

1. So what Field Types we need :- 

Code Snippets :-

<schema name=”moodle” version=”1.2″>


<fieldType name=”string” sortMissingLast=”true” omitNorms=”true”/>          // omitNorms=true @we don’t need Index time boosting

<fieldType name=”text” positionIncrementGap=”100″>



2. Fields Need to be Indexed :-

Code Snippets:-

<field name=”fullname” type=”text” indexed=”true” stored=”true”/>
<field name=”shortname” type=”text” indexed=”true” stored=”true”/>

Let’s spell check on Courses:-

<copyField source=”fullname” dest=”spell”/>
<copyField source=”shortname” dest=”spell”/>


<searchComponent name=”spellcheck” class=”solr.SpellCheckComponent”>

<str name=”queryAnalyzerFieldType”>textSpell</str>

<lst name=”spellchecker”>

<str name=”name”>default</str>

<str name=”field”>spell</str>

<str name=”spellcheckIndexDir”>./spellchecker1</str>

<str name=”buildOnOptimize”>true</str>



Currently Schema  is responding fine with:-

  • Stemming
  • Intra-word Delimiter
  • Fuzzy Search
  • Spell Checking

I am looking forward to make the search more powerful. Solr have lots of capabilities 🙂


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s