Revision 3245
Added by Jing Tao over 17 years ago
src/edu/ucsb/nceas/metacat/QueryGroup.java | ||
---|---|---|
111 | 111 |
{ |
112 | 112 |
String sameValueQueryString = printSQLStringWithSameSearchValue(); |
113 | 113 |
queryString.append(sameValueQueryString); |
114 |
if (queryString != null) |
|
115 |
{ |
|
116 |
first = false; |
|
117 |
} |
|
114 | 118 |
} |
115 | 119 |
|
116 | 120 |
for (int i=0; i<queryGroupsChildren.size(); i++) |
... | ... | |
287 | 291 |
{ |
288 | 292 |
//System.out.println("new term is not null branch in handle new query term"); |
289 | 293 |
//we only handle union operator now. |
290 |
if (operator != null && operator.equalsIgnoreCase(UNION)) |
|
294 |
if (operator != null && operator.equalsIgnoreCase(UNION) && |
|
295 |
MetaCatUtil.pathsForIndexing.contains(newTerm.getPathExpression())) |
|
291 | 296 |
{ |
292 | 297 |
//System.out.println("in only union branch in handle new query term"); |
293 | 298 |
for (int i=0; i<queryTerms.size(); i++) |
Also available in: Unified diff
Fix bug that if there is a search value is different to others, the query wouold work.