LPS-38227 Fix Nuxeo search

cc/ @mikakoivisto

@jhinkey I have removed the javadoc introduced in the very first commit so you can review it and include it back later when this is already merged.

Thx!