related documents fixes
* both manual and auto searches returned the document currently edited
* fixed a search bug