Facet Autocomplete Search with Computed Field
We are trying to use the Search Facet Autocomplete feature in Coveo for Sitecore. Our facet use Computed fields to replace Multilist Guid by its text labels into Sitecore.
- We created Coveo.Custom Project with FacetGuidToItemNameComputedField : IComputedIndexField class.
- We added our field map into Coveo.SearchProvider.config
- Into Sitecore, we added the facet Field that map our new Computed field and we setup our Facet with that new facet item.
- We Rebuilded the index.
All facets works fine, if we activate Facet Autocomplete Search this return 0 results.
2nd test : If we specify Lookup field in the advanced settings, the facet auto complete Search Works fine but our facet has
multiple values separated with ";"
Screenshots : https://drive.google.com/file/d/0Bx87SE062DmVaW9HeGNINTBEcWs/view?usp=sharing
Thank you for help.
Have you specified your field as multivalue? It treat the field correctly by parsing the ';' and returning the good values. It's described on this page : https://developers.coveo.com/display/SC201411/Understanding+the+Coveo+Search+Provider's+Configuration+File
In the field map, just add isMultiValue="true" to your field and reindex your items.