Changeset 32610

Show
Ignore:
Timestamp:
16.11.2018 17:24:55 (4 weeks ago)
Author:
ak19
Message:

The solene_src object does not appear to be used by either lucene or solr. GS2LuceneSearch declares and manages its own lucene_src object (a GS2LuceneQuery object). solene_src may be removed hereafter from SharedSoleneGS2FieldSearch. But for now, writing a cleanUp method skeleton so that any cleaning up of its Query object will be called in there.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/SharedSoleneGS2FieldSearch.java

    r30669 r32610  
    4444  static Logger logger = Logger.getLogger(org.greenstone.gsdl3.service.SharedSoleneGS2FieldSearch.class.getName()); 
    4545 
     46  // Neither lucene nor solr appear to use solene_src. GS2LuceneQuery has its own object, lucene_src 
    4647  protected SharedSoleneQuery solene_src = null; 
    4748  protected String default_sort = ""; 
     
    6162    } 
    6263 
     64    public void cleanUp() 
     65    { 
     66        super.cleanUp(); 
     67         
     68        if(this.solene_src != null) { 
     69            this.solene_src.cleanUp(); 
     70        } 
     71    } 
     72     
    6373    /** configure this service */ 
    6474    public boolean configure(Element info, Element extra_info)