Current implementation of wildcard search does not support queries of the form "*". I.E. search for everything. This was not originally considered a priority, but it has become apparent that this form is in use by ADW, and should be supported.
Example query usage: {
query: '*',
language: 'afts'
},
filterQueries,
sort: [{
type: 'FIELD',
field: 'cm:modified',
ascending: false
}],
paging: {
maxItems: 25,
skipCount: 0
}
});
This will return the 25 most recently modified records in order of modification.
*Acceptance Criteria: *
Wildcard queries of the form described above are supported
The FTSQueryParser replace the * query with a term query ISNODE:T at https://github.com/Alfresco/alfresco-community-repo/blob/36450c0ae50b86af094a6c295a839532cf662b95/data-model/src/main/java/org/alfresco/repo/search/impl/parsers/FTSQueryParser.java#L414
This means that the invoked method in ElasticsearchQueryParserAdaptor will be getFieldQuery.
As a purposed implementation, we should apply one of the solutions below:
invoke the getMatchAllNodesQuery when the term query is ISNODE:T
add the ISNODE:T field to each node that must be returned at indexing time