Skip to content

Commit

Permalink
Apply PATH workarounds for PNAME and ANAME
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Nov 6, 2023
1 parent 60ac579 commit 47d7516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export class CustomResourcesService {
getRecentFiles(personId: string, pagination: PaginationModel, filters?: string[]): Observable<ResultSetPaging> {
const defaultFilter = [
'TYPE:"content"',
//TODO '*' for now cause exception to be thrown, Team6 is working on it
'-PATH:"//cm:wiki/"',
'-PATH:"//cm:wiki/*"',
'-TYPE:"app:filelink"',
'-TYPE:"cm:thumbnail"',
'-TYPE:"cm:failedThumbnail"',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export class SearchPermissionConfigurationService implements SearchConfiguration
if (this.queryProvider?.query) {
query = this.queryProvider.query.replace(new RegExp(/\${([^}]+)}/g), searchTerm);
} else {
//TODO change to PARENT: with noderef of app.default or to PATH://cm:APP.DEFAULT/*
query = `(username:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*)`;
query = `(username:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*) AND PATH:"//cm:APP.DEFAULT/*"`;
}
return query;
}
Expand Down

0 comments on commit 47d7516

Please sign in to comment.