Project

General

Profile

« Previous | Next » 

Revision 4812

Added by daigle about 15 years ago

Format indexPaths in metacat.properties. Remove from build.properties and build.xml. Move indexPath list getter from MetacatUtil to SystemUtil.

View differences:

QueryTerm.java
33 33
import org.apache.log4j.Logger;
34 34

  
35 35
import edu.ucsb.nceas.metacat.util.MetacatUtil;
36
import edu.ucsb.nceas.metacat.util.SystemUtil;
37
import edu.ucsb.nceas.metacat.util.UtilException;
36 38

  
37 39
/** a utility class that represents a single term in a query */
38 40
public class QueryTerm
......
224 226

  
225 227
        // if pathexpr has been specified in metacat.properties for indexing
226 228
        if(pathexpr != null){
227
            if(MetacatUtil.pathsForIndexing.contains(pathexpr)){
228
                usePathIndex = true;
229
            }
229
        	try {
230
				if (SystemUtil.getPathsForIndexing().contains(pathexpr)) {
231
					usePathIndex = true;
232
				}
233
			} catch (UtilException ue) {
234
				log.warn("Could not get index paths: " + ue.getMessage());
235
			}
230 236
        }
231 237
        
232
        
233 238
        if(usePathIndex){
234 239
            // using xml_path_index table.....
235 240
        	if(notEqual == true ){

Also available in: Unified diff