Changeset 6727 for TI01-discovery-API


Ignore:
Timestamp:
15/03/10 16:48:09 (9 years ago)
Author:
mnagni
Message:

Added a "DISTINCT" to the doSearch query
Small correction on the connection.close() logging
Promoted the artifact version to 1.1.5

Location:
TI01-discovery-API/trunk/MEDINDiscoveryService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-API/trunk/MEDINDiscoveryService/pom.xml

    r6726 r6727  
    44        <groupId>ndg.services.discovery</groupId> 
    55        <artifactId>MedinDiscoveryService</artifactId> 
    6         <version>1.1.4</version> 
     6        <version>1.1.5</version> 
    77        <packaging>aar</packaging> 
    88 
  • TI01-discovery-API/trunk/MEDINDiscoveryService/src/main/java/ndg/services/discovery/model/CommonMethods.java

    r6722 r6727  
    115115 
    116116                // NB, we use the postgres text search function to do term searches 
    117                 StringBuffer selectSQL = new StringBuffer("SELECT original_document_filename "); 
     117                StringBuffer selectSQL = new StringBuffer("SELECT distinct original_document_filename "); 
    118118 
    119119                StringBuffer fromSQL = new StringBuffer(); 
     
    156156                        if (conn != null) 
    157157                                try { 
    158                                         conn.close(); 
     158                                        if (!conn.isClosed()) 
     159                                                conn.close(); 
    159160                                } catch (SQLException e) { 
    160161                                        logHelper.logMessage("closeConnectionError: ", Level.ERROR, e); 
Note: See TracChangeset for help on using the changeset viewer.