[Patch] Mapping strategy abstraction
Description
Environment
None
Attachments
2
Activity
Show:

PaulP February 9, 2010 at 7:19 AM
Really fixed in the alpha

Tuna Toksoz October 18, 2009 at 4:47 AM
Applied in rev 1050.
Thank you!

Andrey Shchekin October 18, 2009 at 1:19 AM
Slightly updated (regenerated) version of the patch.
Who's Looking?
Currently the only available mapping in NHibernate.Search is attribute-based mapping.
This is sub-perfect, since it requires domain entity assembly to reference NHibernate.Search.
Patch abstracts AttributeSearchMapping to be a specific case of abstract ISearchMapping interface.
It does not include any other built-in search mappings, however it is trivial to build a manual (code-configured) one.
So the original problem is resolved.
Custom mapping can be selected using hibernate.search.mapping configuration parameter.
Additional notes:
Patch passes all tests, however I am pretty sure there might be some subtle bugs (especially with analyzer hierarchy precedence).
If there are no tests on how this should work, however, I can not find and fix them, so I think they can be fixed and retroactively tested later if an issue arises.