. Fix for AWC-498

- Searching for results in a Location (e.g. PATH) and category are now ANDed together rather than ORed

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2314 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-07 17:50:11 +00:00
parent f796f0f9dc
commit 4181030fac

View File

@@ -243,7 +243,7 @@ public final class SearchContext implements Serializable
pathQuery.append(" PATH:\"").append(location).append("\" ");
if (categories != null && categories.length != 0)
{
pathQuery.append("AND");
pathQuery.append("AND (");
}
}
if (categories != null && categories.length != 0)
@@ -256,6 +256,10 @@ public final class SearchContext implements Serializable
}
pathQuery.append(" PATH:\"").append(categories[i]).append("\" ");
}
if (location != null)
{
pathQuery.append(") ");
}
}
}