Changeset 26103 for main


Ignore:
Timestamp:
2012-08-14T15:13:21+12:00 (12 years ago)
Author:
kjdon
Message:

when concatenating subcoll and language info onto index name, need to use a temporary variable. Don't use the class variable or next time it won't match idx and you won't be able to change to the new subindex.

File:
1 edited

Legend:

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

    r25885 r26103  
    106106        Set entries = params.entrySet();
    107107        Iterator i = entries.iterator();
     108        String current_physical_index_name = this.physical_index_name;
    108109        String physical_sub_index_name = this.default_index_subcollection;
    109110        String physical_index_language_name = this.default_index_language;
     
    172173            if (physical_sub_index_name != null)
    173174            {
    174                 physical_index_name += physical_sub_index_name;
     175                current_physical_index_name += physical_sub_index_name;
    175176            }
    176177            if (physical_index_language_name != null)
    177178            {
    178                 physical_index_name += physical_index_language_name;
     179                current_physical_index_name += physical_index_language_name;
    179180            }
    180181        }
    181182
    182183        // set up mgpp_src
    183         String indexdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + File.separatorChar + GSFile.collectionIndexPath(this.index_stem, physical_index_name);
     184        String indexdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + File.separatorChar + GSFile.collectionIndexPath(this.index_stem, current_physical_index_name);
    184185        mgpp_src.loadIndexData(indexdir);
    185186
Note: See TracChangeset for help on using the changeset viewer.