Fix multiple problems from Lucene indexing
- Incorrect escaping of search terms
- Unnecessary wildcard queries
- Results double checked due to lax search queries
- findByTypeAndName find based on type resource's string presentation instead of name of the type
- etc
Originates from redmine issue 7750.