Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1703

Sorting by function problems on multicore (more than one core)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5
    • 4.0-ALPHA
    • multicore, search
    • None
    • Linux (debian, ubuntu), 64bits

    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

          Activity

            People

              Unassigned Unassigned
              gro Rafał Kuć
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: