package ch.hsr.solrpayload;

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 PayloadParserPlugin extends QParserPlugin {

	@Override
	public void init(NamedList arg0) {
		
	}

	@Override
	public QParser createParser(String arg0, SolrParams arg1, SolrParams arg2,
			SolrQueryRequest arg3) {
		// TODO Auto-generated method stub
		return null;
	}

}

@@ -410,20 +410,20 @@
 (String 
-arg0
+qstr
 , SolrPa
@@ -431,12 +431,19 @@
 ams 
-arg1
+localParams
 , So
@@ -455,12 +455,14 @@
 ams 
+p
 ar
-g2
+ams
 ,%0A%09%09
@@ -483,66 +483,74 @@
 est 
-arg3
+req
 ) %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09return null
+return new PayloadQParser(qstr, localParams, params, req)
 ;%0A%09%7D

update payloadparserplugin