OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: Andreas Baaserud Hauge on March 01, 2023, 04:11:53 AM

Title: Can we adjust the ODWek REST max hits
Post by: Andreas Baaserud Hauge on March 01, 2023, 04:11:53 AM
Hi,

Through ODWek Java Api - ODFolder.setMaxHits(...) we can adjust the max hits.
With ODWek Rest, is it possible to increase the max hits through ODWek Rest ? or is the ODWek Rest limited to max 200 hits?

Thanks in advance
Title: Re: Can we adjust the ODWek REST max hits
Post by: Andreas Baaserud Hauge on March 01, 2023, 04:53:44 AM
ups noticed I put this under wrong topic..
Maybe some moderator can move this topic to the correct topic.
Title: Re: Can we adjust the ODWek REST max hits
Post by: Andreas Baaserud Hauge on March 02, 2023, 01:58:16 AM
Guess I found the solution,

In the rest configuration template file(cmod_installation\www\rest\default.tmpl), you have a property called 'maxHits'.
I have adjusted this to maxHits=1000

Created a new connection pool and access keys
Restarted the cmod-rest application

Now I retrieve up to 1000 hits.
Title: Re: Can we adjust the ODWek REST max hits
Post by: Justin Derrick on March 02, 2023, 08:55:16 AM
Moved to the ODWEK/Java API Board.