Skip to content

Instantly share code, notes, and snippets.

@GrazingScientist
GrazingScientist / RegisterTokenizerFactoryInLucene.md
Last active March 23, 2018 06:29
Register a Custom TokenizerFactory in Apache Lucene / Solr

When you created a custom TokenizerFactory for Apache Lucene, you need to register it so the SPI Loader can recognize it.

Let's assume, your have written a TokenizerFactory class like this:

package de.company.subdomain;

public class AwesomeTokenizerFactory extends TokenizerFactory {
  // Lot of awesome code
}
@GrazingScientist
GrazingScientist / article_details.tpl
Created January 19, 2018 10:24
OJS 3 - Include page number on article page
### The middle block is the interesting part, the top and the bottom block should already be present. I recommend to create a child theme and manipulate this. ###
[...]
{* Issue article appears in *}
<div class="item issue">
<div class="sub_item">
<div class="label">
{translate key="issue.issue"}