Project

General

Profile

« Previous | Next » 

Revision 7498

tweak to pathquery/generic xpath handling

View differences:

src/edu/ucsb/nceas/metacat/index/XpathIndexField.java
14 14
 */
15 15

  
16 16
public class XpathIndexField extends FieldSpec {
17
	private static final String separator = " ";
18 17
	private static final String textSelector = "text()";
19 18
	public final String xpath;
20 19

  
src/edu/ucsb/nceas/metacat/index/MetacatIndex.java
43 43
	protected void readMCIndexPaths() {
44 44
		List<String> paths = new ArrayList<String>();//SystemUtil.getPathsforIndexing(); //nullable?
45 45
		for (String p : paths) {
46
			this.fields.add(new XpathIndexField("mcidx_" + p, p));
46
			this.fields.add(new XpathIndexField("mcidx_" + p, "//" + p));
47 47
		}
48 48
	}
49 49

  

Also available in: Unified diff