Details
Description
When using sort by function (for example dist function) with multicore with more than one core (on multicore with one core, ie. the example deployment the problem doesn`t exist) there is a problem with not using the right schema. I think there is a problem with this portion of code:
QueryParsing.java:
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 FunctionQuery(parseValSource(new StrParser(func), schema)); }
Code above uses deprecated method to get the core sometimes getting the wrong core effecting in impossibility to find the right fields in index.
Attachments
Issue Links
- duplicates
-
SOLR-1067 QueryParsing.parseFunction uses Singleton Core (SolrCore.getSolrCore())
- Closed