Full-text searching problems

I've fixed two problems in full-text searching:

- Wrong attribute index
- Searching in sub-projects