Skip to content

Instantly share code, notes, and snippets.

@jnioche
Created September 3, 2010 08:47
Show Gist options
  • Save jnioche/563625 to your computer and use it in GitHub Desktop.
Save jnioche/563625 to your computer and use it in GitHub Desktop.
package com.digitalpebble.solr;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.search.QParser;
import org.apache.solr.search.QParserPlugin;
public class PLDisMaxQParserPlugin extends QParserPlugin {
public void init(NamedList args) {
}
@Override
public QParser createParser(String qstr, SolrParams localParams,
SolrParams params, SolrQueryRequest req) {
return new PLDisMaxQParser(qstr, localParams, params, req);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment