Changeset 13927
- Timestamp:
- 2007-02-19T10:55:25+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/LuceneSearch.java
r13270 r13927 40 40 protected static final String INDEX_ELEM = "index"; 41 41 42 public boolean configure(Element info, Element extra_info) { 43 if (!super.configure(info, extra_info)){ 44 return false; 45 } 46 47 default_index = "idx"; 48 return true; 49 } 50 42 51 protected void getIndexData(ArrayList index_ids, ArrayList index_names, String lang) 43 52 { … … 56 65 } else { 57 66 // there is only one index, so we assume the default 58 index_ids.add( "idx");67 index_ids.add(this.default_index); 59 68 index_names.add("Default index"); 60 69 } … … 94 103 // Get the index 95 104 String index = (String) params.get(INDEX_PARAM); 105 if (index == null || index.equals("")) { 106 index = this.default_index; // assume the default 107 } 96 108 try { 97 109 String index_dir = GSFile.collectionIndexDir(this.site_home, this.cluster_name);
Note:
See TracChangeset
for help on using the changeset viewer.