Author Topic: Can we adjust the ODWek REST max hits  (Read 802 times)

Andreas Baaserud Hauge

  • Jr. Member
  • **
  • Posts: 48
    • View Profile
Can we adjust the ODWek REST max hits
« 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
ABH

Andreas Baaserud Hauge

  • Jr. Member
  • **
  • Posts: 48
    • View Profile
Re: Can we adjust the ODWek REST max hits
« Reply #1 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.
« Last Edit: March 02, 2023, 01:54:28 AM by Andreas Baaserud Hauge »
ABH

Andreas Baaserud Hauge

  • Jr. Member
  • **
  • Posts: 48
    • View Profile
Re: Can we adjust the ODWek REST max hits
« Reply #2 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.
ABH

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Can we adjust the ODWek REST max hits
« Reply #3 on: March 02, 2023, 08:55:16 AM »
Moved to the ODWEK/Java API Board.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR