HSearch does great job by exploring database model by defined annotations. The issue is, that I'd like to change a little bit what is stored finally in index.
In my current solution I duplicate fields added by @IndexedEmbeded to fields without prefix. I have field type, and it's FK to other entity where there are 3 fields: id, name, description.
HS build document like that:
type.id, type.name, type.description
I add field type, duplicate of type.name and change it to:
type.id, type, type.name, type.description

Second issue I used is that I duplicate every field to field with the same name (content in my case). So content was global search field, and user can make more specific query if want:
word1 +type:word2 -status:word3

I hope it is clear, but feel free ask more questions.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira