Wildcard Search - support for "*" queries

Description

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

Environment

None

Activity

Show:
Davide Cerbo
February 18, 2021, 7:15 PM
Edited

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:

  1. invoke the getMatchAllNodesQuery when the term query is ISNODE:T

  2. add the ISNODE:T field to each node that must be returned at indexing time

Assignee

Unassigned

Reporter

Martin Stanford

Labels

None

Regression

None

Bug Priority

Category 2

Delivery Team

None

Release Train

None

Affects versions