mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-3406] - Fix advanced search inside content-node selector (#6084)
* fix advanced search inside content-node selector * Update failing unit tests
This commit is contained in:
@@ -405,7 +405,7 @@ describe('ContentNodeSelectorComponent', () => {
|
|||||||
|
|
||||||
const defaultSearchNode: any = {
|
const defaultSearchNode: any = {
|
||||||
query: {
|
query: {
|
||||||
query: searchTerm ? `${searchTerm}* OR name:${searchTerm}*` : searchTerm
|
query: searchTerm ? `${searchTerm}*` : searchTerm
|
||||||
},
|
},
|
||||||
include: ['path', 'allowableOperations', 'properties'],
|
include: ['path', 'allowableOperations', 'properties'],
|
||||||
paging: {
|
paging: {
|
||||||
|
@@ -56,7 +56,7 @@ describe('ContentNodeSelectorService', () => {
|
|||||||
service.search('nuka cola quantum');
|
service.search('nuka cola quantum');
|
||||||
|
|
||||||
expect(search.query.query).toEqual({
|
expect(search.query.query).toEqual({
|
||||||
query: 'nuka cola quantum* OR name:nuka cola quantum*'
|
query: 'nuka cola quantum*'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ export class ContentNodeSelectorService {
|
|||||||
|
|
||||||
const defaultSearchNode: any = {
|
const defaultSearchNode: any = {
|
||||||
query: {
|
query: {
|
||||||
query: `${searchTerm}* OR name:${searchTerm}*`
|
query: `${searchTerm}*`
|
||||||
},
|
},
|
||||||
include: ['path', 'allowableOperations', 'properties'],
|
include: ['path', 'allowableOperations', 'properties'],
|
||||||
paging: {
|
paging: {
|
||||||
|
Reference in New Issue
Block a user