Solr
  1. Solr
  2. SOLR-2224

TermVectorComponent did not return results when using distributedProcess in distribution envs

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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 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 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
        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 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); }

          People

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

            Dates

            • Created:
              Updated:

              Development