Gravatar for adouglas@itagroup.com

Question by AbbyDouglas801, May 1, 2017 6:32 PM

Coveo Express - Increase Results from 100

Is it possible to increase the results from 100 to a larger number or all documents?

Gravatar for amoreau@coveo.com

Comment by amoreau, May 1, 2017 6:44 PM

Hey Abby,

I think you're hitting a 100 document limit because you have exactly 100 documents. My current out of the box Coveo for Salesforce Free search page shows 116 results.

That being said, Coveo for Salesforce Free and Express returns the first 200 documents to avoid putting too much load on the Salesforce index. Have you performed a customization that would query the Salesforce index twice per document? That might explain why you are returned 100 documents exactly.

-Alex

Gravatar for amoreau@coveo.com

Comment by amoreau, May 1, 2017 7:15 PM

Have you checked the query you are sending to the Coveo Search API? You can find it in the `Network` tab of the Browser Console, as the last `v2/` element.

There are two possibilities in my opinion going on right now:
-A hidden query on your page is limiting the number of results, which happens to be exactly 100


-You are querying each document twice. The returned results are exactly 200, which is the limit for Free/Express, but are collapsed to 100 since they are all present twice.

Let me know if either rings a bell as to your customization.

-Alex

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, May 2, 2017 8:18 AM

@amoreau is missing one crucial point: we presently request a maximum of 100 items *per object type*. When querying multiple objects (ex: the default All Content tab) you can thus exceed this value, but if you only query a single one you'll hit the limit at 100 items.

Granted, this is a bit restrictive. Originally this limit was put in because the Salesforce SOSL/SOQL APIs have this tendency to become quite slow when requesting larger number of items, yielding a poor search experience. We use those APIs in Free/Express instead of our own index. Note that if you drill down into the results using the facets you'll be able to go "further" than the original 100 items; the limit only applied to the number of items matching the actual query filters.

I'll have a conversation with the team when they arrive this morning, to try and figure out what would be the best way to allow one to retrieve more items of a single object, at the cost of reduced performance. I'll update this post afterwards.

In any case, Salesforce itself enforces a limit of 2000 items per SOSL query, so even if we allow increasing the present value of 100, you'll still hit the same problem further on.

Gravatar for adouglas@itagroup.com

Comment by AbbyDouglas801, May 3, 2017 4:04 PM

@Martin Laporte Were you able to touch base with your team to see if we can retrieve more items on a single object search from 100 to 700?

Ask a question