Skip to content

Instantly share code, notes, and snippets.

View FabianKoestring's full-sized avatar
🏆
Die Innovationsmaschine

Fabian Köstring FabianKoestring

🏆
Die Innovationsmaschine
View GitHub Profile
@FabianKoestring
FabianKoestring / MyNewSimilarityClass.java
Created December 7, 2013 18:43
Custom implementation of the solr DefaultSimilarity class. With this no internal solr score changes will happen.
package org.apache.lucene.search.similarities;
import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.search.similarities.DefaultSimilarity;
public class MyNewSimilarityClass extends DefaultSimilarity {
@Override
public float coord(int overlap, int maxOverlap) {
return 1.0f;
mysql -u root -p
DROP DATABASE "DATABASE";
CREATE DATABASE "DATABASE";
Exit
mysql -u root -p "DATABASE" < "DATABASE_EXPORT"