No description, website, or topics provided.
Clone or download
Pull request Compare This branch is 1 commit ahead, 5 commits behind MIR-MU:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.txt
pom.xml

README.txt

MIaSMath is a math processing plugin for Lucene or Solr.

To integrate MIaSMath including MathTokenizer into a Solr instance:

1. Following libraries must be copied to solr/lib directory:
	-jdom2-2.0.3.jar
	-mathml-canonicalizer.jar
	-MIaSMath.jar

2. Configuration in the schema.xml must be done:
  
The following attributes must be specified for the tokenizer MathTokenizer:
  subformulae - true for analyzer type index, false for analyzer type query
 
Complete example:
<fieldType name="math" class="solr.TextField">
  <analyzer type="index">
    <tokenizer class="cz.muni.fi.mias.MathTokenizerFactory" subformulae="true"/> 
  </analyzer>
  <analyzer type="query">
    <tokenizer class="cz.muni.fi.mias.MathTokenizerFactory" subformulae="false"/> 
  </analyzer>
</fieldType>


A field for storing math must be declared:
<field name="math" type="math" indexed="true" stored="false" multiValued="true" />

That's it. You can run your Solr instance and test MathTokenizer in the analysis interface.