On Thu, Mar 26, 2015 at 4:25 PM, Pascal BASTIEN <[email protected]> wrote:
Hello
I created an application: - my Class EAClass contain a field DG MOA * : (P1_DgMoa: Database List) Display Type: select Sort: Id XWiki Class Name: FormSMQ.ListeDGClass Id Field Name: DGId Value Field Name: DGLib
My Class (source of select list) FormSMQ.ListeDGClass have 2 fields: DG Id (DGId: String): contain l'Id of my list DG Lib (DGLib: String): contain lib (pretty name like) who is displayed on my list select. My data are: DGId:20_dgaln / DGLib: DGALN DGId:25_dgec / DGLib: DGEC DGId:30_dgitm / DGLib: DGITM ...
Everything going well: -all pages based on EAClass displayed Lib Value in view mode and in edit mode too (the id value is stored in the page)...
Except for search engine: I have some problems:
- "search page" searching only Id value and not lib value (of course because it is the id value that is stored in EAClass object) i.e. I found pages, if I search "25_dgec" but not if I search "DGEC"
Yes, this is 'normal' because ATM only the raw value (id) is indexed for Database List properties.
- Result "search page" displayed property name (and not the pretty name) FAQ have same issue. - my solr facet displayed my id value too.
Do you know how can I fix this issue (if someone understand my problem ;-) )?
Here I paste a nice screenchot: http://snag.gy/Joa7q.jpg
ATM there's no solution for the search results highlights. The property name displayed there is part of the highlight (the matched text) and it cannot be parsed (if the property value is large enough and the match is somewhere at the end then the property name is not even included in the match). Regarding the raw value (id) displayed in the facet, you can write a custom facet that displays the label corresponding to the raw value. Hope this helps, Marius
Thanks.
Pascal B
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users