Re: Solr-839 and version 4.5 (XmlQueryParser)

2013-12-18 Thread Puneet Pawaia
Hi, Just in case it is of use to anyone, I managed to compile the 4.0 patch by changing the line where new CoreParser is created to below. CoreParser parser = new CoreParser(defaultField, getReq().getSchema().getQueryAnalyzer()); The parser seems to work for the simple tests that I have done so

Re: Solr-839 and version 4.5 (XmlQueryParser)

2013-12-17 Thread Daniel Collins
Do you need it? Our workaround was to pass null, from what we could tell the (lucene) QueryParser which is needs is only used for parsing UserQuery constructs, and we never used that construct. The problem is that SolrQueryParser is derived from Solr's QueryParser class which has now diverged fro

Solr-839 and version 4.5 (XmlQueryParser)

2013-12-17 Thread Puneet Pawaia
Hi All, Not being a Java expert, I used Daniel Collins' modification to patch with version 4.0 source. It works for a start. Have not been able to test much. Next, I tried the same modifications with Solr 4.6.0. This throws up 2 errors. I resolved public Query parse() throws ParseException { by