Confusing/misleading logging when declaring search filters incorrectly

Description

Description/summary
A support case was raised : when you search in the quick search bar in share, the documents pop up, however when you hit enter to go to the advanced search page, no result is seen and you see the error below in solr logs. The logs are not clear so this Jira is raised to request improvement to the logging

Environment
Alfresco 6.2.2 with Alfresco Search Services 2.0.0.

Current behaviour:

The problem is due to an issue with declaring customer search filters in solr-facets-config-custom.properties .ASPECT ID was declared instead of aspect's PROPERTY ID.

To reproduce:
1)in solr-facets-config-custom.properties, declare the search filter with the ASPECTID instead of aspect's Property ID
for example this is the custom model:

This is the config for search filter:

2) In Share, search a document name in the quick search toolbar.
3) While typing the word, results shows that documents are present. When launching search no documents are found and an error shows up in the solr.log file.

Desired behaviour:
The exception logs could be more complete in the AlfrescoSolr4FunctionEvaluationContext.java class.

In the code above the FTSQueryException is caught. It would be MUCH better to add a warning message of the caught exception, something like :

Business case:
The current error is not meaningful and slightly misleading.
This modification alone could have saved at least 1 week of work for the customer and support teams.

Environment

Alfresco 6.2.2 with Alfresco Search Services 2.0.0.

Testcase ID

None

Activity

Show:
Martin Stanford
November 30, 2020, 10:24 AM

Given current priorities for the search team, this is very unlikely to be prioritized in the foreseeable future. I propose this is closed as “Won’t Fix”.

Won't Fix

Assignee

Shima Matoorian

Reporter

Shima Matoorian

Labels

None

Escalated By

None

Security Issue

None

ACT Numbers

01019023

Premier Customer

None

Code Branch

None

Build Location

None

Regression Since

None

Work Funnel End

None

Patch Attached

None

Dependent Version/s

None

Cloud or Enterprise

None

Prioritization Score

None

Delivery Team

None

Bug Priority

Category 2

Components

Affects versions