sequence/xjoin/src/main/java/org/apache/solr/search/xjoin/XJoinSearchComponent.java
/**
   * Generate external process results (if they have not already been generated).
   */
Generate external process results (if they have not already been generated).
Generate external process results ( if they have not already been generated ) .
@Override
  public void prepare(ResponseBuilder rb) throws IOException {
    SolrParams params = rb.req.getParams();
    if (! params.getBool(getName(), false)) {
      return;
    }
    XJoinResults<?> results = (XJoinResults<?>)rb.req.getContext().get(getResultsTag());
    if (results != null) {
      return;
    }
    String prefix = getName() + "." + XJoinParameters.EXTERNAL_PREFIX + ".";
    ModifiableSolrParams externalParams = new ModifiableSolrParams();
    for (Iterator<String> it = params.getParameterNamesIterator(); it.hasNext(); ) {
      String name = it.next();
      if (name.startsWith(prefix)) {
        externalParams.set(name.substring(prefix.length()), params.get(name));
      }
    }
    results = factory.getResults(externalParams);
    rb.req.getContext().put(getResultsTag(), results);
  }
@ Override public void prepare ( ResponseBuilder rb ) throws IOException { SolrParams params = rb . req . getParams ( ) ; if ( ! params . getBool ( getName ( ) , false ) ) { return ; } XJoinResults < ? > results = ( XJoinResults < ? > ) rb . req . getContext ( ) . get ( getResultsTag ( ) ) ; if ( results != null ) { return ; } String prefix = getName ( ) + "." + XJoinParameters . EXTERNAL_PREFIX + "." ; ModifiableSolrParams externalParams = new ModifiableSolrParams ( ) ; for ( Iterator < String > it = params . getParameterNamesIterator ( ) ; it . hasNext ( ) ; ) { String name = it . next ( ) ; if ( name . startsWith ( prefix ) ) { externalParams . set ( name . substring ( prefix . length ( ) ) , params . get ( name ) ) ; } } results = factory . getResults ( externalParams ) ; rb . req . getContext ( ) . put ( getResultsTag ( ) , results ) ; }
Generate external process results (if they have not already been generated).
Generate external process results ( if they have not already been generated ) .
// generate external process results, by passing 'external' prefixed parameters // from the query string to our factory