User searchable relationship field fetch size must be configurable.
Describe the bug
If the relationship field is selected as user searchable then only 30 records appear in the dropdown due limit applied in the body of /api/es/search endpoint.
Related Ticket: https://dotcms.zendesk.com/agent/tickets/107923
Reproduced on 22.06
To Reproduce
Steps to reproduce the behavior:
- log in to Demo Site.
- Go to Content->Search portlet.
- Create new Blog Authors with more than 30 records.
- Go to Content->Blogs portlet.
- Click on advanced search.
- Verify the results of the Author dropdown only 30 records appear.
Expected behavior
size param in the body of /api/es/search endpoint must be configurable.
Screenshots

Faizan:
Can you type in the field and query the relationships by title, to find the one you are looking for? If so, that is the solution.
@wezell Whenever I type in the field and try to select the desired value from the dropdown I get the following error.
VM386:123 Uncaught Error: dojo.data.ItemFileReadStore: Invalid item argument.
at Object._assertIsItem (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:123:10)
at Object.getValues (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:151:8)
at Object.getValue (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:142:21)
at Object._announceOption (build.js?b=22.06:2:180186)
at Object.advice (dojo.js?b=22.06:2:55952)
at Object.<anonymous> (dojo.js?b=22.06:2:54694)
at Object.eval (eval at <anonymous> (prototype.js:591:64), <anonymous>:32:52)
at Object.advice (dojo.js?b=22.06:2:54820)
at Object._25e [as _announceOption] (dojo.js?b=22.06:2:55660)
at Object._selectOption (build.js?b=22.06:2:180531)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.