Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
14.10.7, 15.2
-
None
-
Unknown
-
Description
When searching for some text and the value of a property in an object present in a document matches, the raw property name is displayed to the user in highlighted results.
For example, if you search for a tag called "mytag", "tags : mytag" will be displayed, regardless of the user's language settings.
For instance in English:
In French:
"tag" happens to be used in French to, but I would expect "tags :" to show up as "Etiquetas:" in Spanish:
Like it does when setting tags on a page:
(I would also expect no space before colons in most languages)
The reason behind this behavior is because the whole "tags : mytag" is indexed: https://github.com/xwiki/xwiki-platform/blob/addddfa5d7f668f6c59b2799cacf96145f6ffad7/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-api/src/main/java/org/xwiki/search/solr/internal/metadata/AbstractSolrMetadataExtractor.java#L490
It would be best to be able to display these field name in the language of the user, at least for common objects like tags, that have UI elements integrated to the basic XWiki interface. Users should not have to be exposed to technical / English names for such features as tags and be expected to understand that it is because tags are actually values in XWiki objects attached to documents. That's only interesting for developers.
That would probably require a big rework, so a second best solution would be to allow customizing how these property names are indexed.
Initial discussion: https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$1680075606235ltIGo:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=mtrx.nz