Support for using NHibernate.Search on entities that has a Guid as Id

Description

NH.Search throw an exception when uisng a Guid typ as [DocumentId]

Solution:

I have created a new bridge called GuidBridge and registered it with in BridgeFactory:

public static readonly ITwoWayFieldBridge GUID = new TwoWayString2FieldBridgeAdaptor(new GuidBridge());
...
builtInBridges.Add(typeof(Guid).Name, GUID);

  • This is my first patch ever so let me know if i'm doing something wrong*

Environment

None

Attachments

1

Activity

Fabio Maulo 
June 12, 2008 at 2:28 PM

NHibernate.Contrib issue

External Issue

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 12, 2008 at 10:16 PM
Updated July 9, 2008 at 11:39 PM
Resolved June 12, 2008 at 2:28 PM
Who's Looking?