Gravatar for diego.moretto@xcentium.com

Question by Diego, Jan 12, 2015 8:15 AM

Set field to free text gives error

I have a field in my index which I'm trying to set as free text search. On the admin tool I'm setting on Configuration -> Fields and I look for the field which is there. I then check the free text textbox and I get the following error: The URL-encoded form data is not valid.

Any ideas? thanks

1 Reply
Gravatar for vseguin@coveo.com

Answer by Vincent Séguin, Jan 12, 2015 8:17 AM

Hi Diego,

You should not see the free text field by the Coveo Admin Tool. You should set it by the Coveo.SearchProvider.config, in the fieldMap section. Something like

And then reindex the documents that are affected. Learn more about the field map here : https://developers.coveo.com/display/SC201501/Understanding+the+Coveo+Search+Provider's+Configuration+File

Gravatar for diego.moretto@xcentium.com

Comment by Diego, Jan 12, 2015 8:39 AM

thanks Vincent. Even if this field is default from sitecore I should take that approach?

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, Jan 12, 2015 8:39 AM

Yes, for all the fields actually.

Gravatar for diego.moretto@xcentium.com

Comment by Diego, Jan 12, 2015 9:30 AM

Cool. One last question. Lets say I have two sitecore templates which have one field with the same name. Is that the way If I add the free text field will it get applied to both? Lets say both template have a field called title. I assume it gets by the field name?

Template A Field - Title

Template B Field - Title

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, Jan 12, 2015 9:36 AM

It's only by the field name, so it will get applied to both.

Ask a question