Changeset 29664 for gs3-extensions/solr

Show
Ignore:
Timestamp:
19.12.2014 18:42:19 (5 years ago)
Author:
ak19
Message:

Noticed in a tutorial that close() must be called on a SolrQueryRequest? object when it's no longer needed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/util/SolrQueryWrapper.java

    r29218 r29664  
    231231            logger.error("#### Query type was: " + parsedQuery.getClass()); 
    232232            } 
     233            // http://lucene.apache.org/solr/4_7_2/solr-core/org/apache/solr/request/SolrQueryRequestBase.html#close%28%29 
     234            // close() must be called when the object is no longer in use. Frees resources associated with this request 
     235            solrQueryRequest.close(); 
    233236        } 
    234237