[Patch] Mapping strategy abstraction

Description

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.

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.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created October 14, 2009 at 4:39 AM
Updated January 28, 2011 at 2:10 PM
Resolved February 9, 2010 at 7:19 AM
Who's Looking?