Gravatar for

Question by qch1595, Mar 8, 2017 10:11 PM

Coveo REST API keyword not found but it is part of the indexed items

We have a textdescription field in Sitecore. The content is html format. This field is set to "Field Queries" in the Custom Fields in Configuration. However, when I query the REST API, it returns noting even the textdescription field does contain the searched keyword in the html content.


Gravatar for

Comment by Sébastien Belzile, Mar 9, 2017 7:40 AM

How do you query? If the field is configured for field query, it means you do query as follow: @[field][operator]"[value]".

Is that the behavior you wish to have?

On-Premises? or Cloud? Sitecore, Coveo and C4SC versions may help us as well?

Gravatar for

Comment by qch1595, Mar 9, 2017 10:05 AM

We use REST API to query. http://localhost:8080/rest/search?q=mars

"MARS" is in the textdescription field.

It is On-Premises. Sitecore 8.2, Coveo 8.0, C4SC 4.0


1 Reply
Gravatar for

Answer by Sébastien Belzile, Mar 9, 2017 11:00 AM

Enabling field query is not the same thing as enabling free-text search.

Field query allows you to perform queries such that you can query by specifying explicitly the field you whish to query on. Your query should have this format @[field][operator]"[value]", ex: @ftextdescription12345=="mars".

What you are trying to do is a "free-text" search. You want your search to look in the content of your field without having to specify the field name. Your field should enable free-text search on your field in your configuration.

Gravatar for

Comment by qch1595, Mar 9, 2017 11:23 AM

I believe "free-text search" is to enter something more than one keyword(like a sentence). My case is only searching for a single keyword. It does work if I search for "cancer" or "volunteer". This is a new Coveo 8.0 server we built. The old Coveo 7.0 server worked fine with "mars". By default, Coveo will index all the fields from Sitecore, right?

Gravatar for

Comment by qch1595, Mar 9, 2017 11:46 AM

By the way, that textdescription field is an item in DataSources in Sitecore.

Gravatar for

Comment by Sébastien Belzile, Mar 9, 2017 11:50 AM

Well, your configuration with CES7 was probably different.

Free-text search is for "one or more keywords", so it applies to your use case. It is being explained here: .

It does not matter if your field comes from a data source, as long as it appears on your document in your index. This is the case right?

Ask a question