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

Can solr EntityProcessor implement curosrs

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 5.0
    • None
    • None
    • Prod

    Description

      package org.apache.solr.handler.dataimport;

      class SolrEntityProcessor

      protected SolrDocumentList doQuery(int start) {
      ....

      SolrQuery solrQuery = new SolrQuery(queryString);
      solrQuery.setRows(rows);
      solrQuery.setStart(start);
      if (fields != null) {
      for (String field : fields)

      { solrQuery.addField(field); }

      }
      solrQuery.setRequestHandler(requestHandler);
      solrQuery.setFilterQueries(filterQueries);
      solrQuery.setTimeAllowed(timeout * 1000);

      QueryResponse response = null;
      try

      { response = solrClient.query(solrQuery); }

      catch (SolrServerException e) {
      if (ABORT.equals(onError))

      { wrapAndThrow(SEVERE, e); }

      else if (SKIP.equals(onError))

      { wrapAndThrow(DataImportHandlerException.SKIP_ROW, e); }

      }

      -------------------

      If the do Query variant can be implemented with cursor, then it helps with any heavy lifting (bulk processing) with entity processor. That really helps.

      If permitted I can contribute the fix. Currently I am using 4.10 and see the performance issues and planning the work around. If the cursor is available then it really helps.

      Attachments

        1. DIH_SEP_CURSOR_SOLR_7197.patch
          2 kB
          Raveendra Yerraguntl
        2. lucene_ant_test_op
          753 kB
          Raveendra Yerraguntl

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Raveendra Raveendra Yerraguntl
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: