-
Improvement
-
Resolution: Fixed
-
Major
-
4.3.0
-
None
-
4.3 RC2
For implementation org.ametys.web.frontoffice.search.metamodel.impl.ResourceFormatSearchCriterionDefinition
It generates at query time (if selecting Text document for instance) :
(DCFormat:(application/msword))+OR+(DCFormat:(application/vnd.openxmlformats-officedocument.wordprocessingml.document))+OR+(DCFormat:(application/vnd.oasis.opendocument.text))+OR+(DCFormat:(application/rtf))+OR+(DCFormat:(text/rtf))+OR+(DCFormat:(application/x-abiword))
which is :
- very annoying to read and understand for debug purposes
- not optimized, generating a big OrQuery with many clauses is not optimal
We should create a new field, specific for the search service (i.e. for org.ametys.web.frontoffice.search.metamodel.impl.ResourceSearchable), and at index-time, it can only have the values:
- image
- text
- pres
- spreadsheet
- video
- audio
Then at query time, the query will be more readable and more optimized
- Est référencé par
-
CMS-10468 [Solr indexation] Page with attachments of multiple mime-types
- Closed