Gravatar for

Question by Baxter_Lane, Mar 12, 2019 1:18 PM

Document ID (url) truncated when I add a document to my Push Source

I am using the Push Source API to build my own index from a Restful API behind a firewall.

Having trouble, for some reason when I push the document with an ID of "http://[site]/product/[product]?color=[color]&shape=[shape] the system is dropping the &shape portion of the ID, which means not all of my documents are being indexed and the URL is wrong

Any help would be appreciated!

I am on Coveo Cloud V2.


Baxter Lane

Sitecore Engineer

Gravatar for

Comment by François Lachance-Guillemette, Mar 12, 2019 6:20 PM

Could it be possible that "color" contains a value that is invalid for a document ID?

According to the documentation, you must URL-encode you URI, are you already doing that?

Can you share a real query string part of your URI? :)

Gravatar for

Comment by Baxter_Lane, Mar 13, 2019 12:30 PM

no, we make sure it is compatible

it always happens too, not just sometimes, good thought though

Here is an example of the first 42 urls

There are 42 products

1 Reply
Gravatar for

Answer by Baxter_Lane, Mar 12, 2019 11:01 PM

you were right, pretty easy to fix

return AddOrderingIDToUrl($"documents?documentId={ HttpUtility.UrlEncode(documentID)}");

thanks man!

Ask a question