Gravatar for mkrimi@absolunet.com

Question by mohamed krimi, Nov 25, 2014 9:17 AM

Facet Autocomplete Search with Computed Field

Hi guys,

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.

  1. We created Coveo.Custom Project with FacetGuidToItemNameComputedField : IComputedIndexField class.
  2. We added our field map into Coveo.SearchProvider.config
  3. Into Sitecore, we added the facet Field that map our new Computed field and we setup our Facet with that new facet item.
  4. 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.

1 Reply
Gravatar for vseguin@coveo.com

Answer by Vincent Séguin, Nov 25, 2014 10:04 AM

Hi,

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.

Gravatar for mkrimi@absolunet.com

Comment by mohamed krimi, Nov 25, 2014 10:11 AM

Hi Vincent,

Thank you. Here is my Field Map config.

In the Admin CES the field has Multivalue True.

Thank you.

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, Nov 25, 2014 10:13 AM

But on which field is your facet based on? Is it computednamesthemes? From what i see from your screenshot, computednamesthemes is used for the lookup value, it's not the facet field.

Gravatar for mkrimi@absolunet.com

Comment by mohamed krimi, Nov 25, 2014 10:21 AM

Our facet is based on the right Field Facet (computednamesthemes). Note that the lokup field was changed to test the autocomplete. In normal case we should not have a lookup field. Can you confirm please ? https://drive.google.com/file/d/0Bx87SE062DmVUkdRSEI4ZDRPNGs/view?usp=sharing

Gravatar for mkrimi@absolunet.com

Comment by mohamed krimi, Nov 27, 2014 9:46 AM

Hi Vincent, any idea about this case ? Thank you :)

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, Nov 27, 2014 10:27 AM

Hi Mohamed, sorry things have been kinda crazy :D So yeah you don't need to have a lookup field normally. So it just gives nothing in the autocomplete search? Or for some values it works?

Gravatar for mkrimi@absolunet.com

Comment by mohamed krimi, Nov 27, 2014 10:36 AM

Hi Vincent, thank you… When I remove the Lookup field, the autocomplete don't work (0 results for all search Keyword) If I activate the lockup field, the autocomplete works fine, but our facet display all multiple values instead separated values.

Ask a question