Re: QueryParsing using SolrCore.getSolrCore()

2008-10-09 Thread Chris Hostetter
: public static FunctionQuery parseFunction(String func, IndexSchema schema) : throws ParseException { : SolrCore core = SolrCore.getSolrCore(); : return (FunctionQuery)(QParser.getParser(func,func,new : LocalSolrQueryRequest(core,new HashMap())).parse()); : // return new

QueryParsing using SolrCore.getSolrCore()

2008-10-03 Thread Ryan McKinley
I'm trying to make a non-deprecated branch and ran into something a little funny.. QueryParsing uses access to SolrCore.getSolrCore() -- this will break in a multi-core environment. public static FunctionQuery parseFunction(String func, IndexSchema schema) throws ParseException {