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

TermVectorComponent did not return results when using distributedProcess in distribution envs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      JDK1.6/Tomcat6

      Description

      when using distributed query, TVRH did not return any results.
      in distributedProcess, tv creates one request, that use TermVectorParams.DOC_IDS, for example, tv.docIds=10001
      but queryCommponent returns ids, that is uniqueKeys, not DOCIDS.

      so, in distribution envs, must not use distributedProcess.

        Activity

        Hide
        tom_lt tom liu added a comment -

        we can delete distributedProcess method, and add modifyRequest method:

        public void modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq) {
        	  if (rb.stage == ResponseBuilder.STAGE_GET_FIELDS)
        	          sreq.params.set("tv", true);
                  else
        	          sreq.params.set("tv", false);
        }
        
        Show
        tom_lt tom liu added a comment - we can delete distributedProcess method, and add modifyRequest method: public void modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq) { if (rb.stage == ResponseBuilder.STAGE_GET_FIELDS) sreq.params.set("tv", true); else sreq.params.set("tv", false); }
        Hide
        tom_lt tom liu added a comment -

        in distributed query envs, use request that queryComponents creates.

        the patch use merge method that debugComponents have.
        see https://issues.apache.org/jira/browse/SOLR-2228

        Show
        tom_lt tom liu added a comment - in distributed query envs, use request that queryComponents creates. the patch use merge method that debugComponents have. see https://issues.apache.org/jira/browse/SOLR-2228
        Hide
        janhoy Jan Høydahl added a comment -

        Closing ancient issue as "not a problem". If this was a real issue it would have surfaced in the 6 years after

        Show
        janhoy Jan Høydahl added a comment - Closing ancient issue as "not a problem". If this was a real issue it would have surfaced in the 6 years after

          People

          • Assignee:
            Unassigned
            Reporter:
            tom_lt tom liu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development