Gravatar for lautaro.bonetto@gmail.com

Question by Lautaro Bonetto, Mar 10, 2015 10:45 PM

how long could be the string used on the search query in Coveo?

Morning,

Can you please let me know how long could be the string used on the search query in Coveo? Are there some restrictions or qualification of the functionality? Could we search through the Coveo Search API sending a very long string by POST to avoid GET limitations?

Thanks so much!

Lautaro.

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Mar 11, 2015 8:38 AM

CES itself have a configurable maximum number of terms per query (see Maximum Terms per Query). The default is 128 terms.

Gravatar for lautaro.bonetto@gmail.com

Comment by Lautaro Bonetto, Mar 11, 2015 9:25 AM

Thanks so much!

Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Mar 11, 2015 4:14 AM

When using GET (e.g. JSONP) the limit comes from the maximum query string size that the browser will accept sending through a GET request. This changes from one browser to another.

For a while now the JS UI no longer uses JSONP unless it's not possible to do otherwise (this happens only on very particular setups, and then only with IE8 or IE9). So most of the time a POST request is used and those have no relevant limitation on the size of the data that is sent.

Gravatar for lautaro.bonetto@gmail.com

Comment by Lautaro Bonetto, Mar 11, 2015 9:24 AM

Thanks so much!

Ask a question