[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-669) String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Jan 27 09:24:05 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39769#action_39769 ] 

Emmanuel Bernard commented on HSEARCH-669:
------------------------------------------

Sanne, it's fixed now right?

> String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-669
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-669
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: mapping, query
>    Affects Versions: 3.3.0.Final
>         Environment: Tested against 3.3.0.Final, database agnostic.
>            Reporter: Brian Langel
>            Assignee: Sanne Grinovero
>             Fix For: 3.3.1, 3.4.0
>
>         Attachments: string2fieldbridgeadapterfailure.tar
>
>
> See attached source code (maven project. 'mvn test' will run the test case).
> String2FieldBridgeAdaptor does not implement StringBridge causing DocumentBuilderIndexedEntity to not recognize it as a StringBridge (line 598 in DocumentBuilderIndexedEntity checks if the found FieldBridge is assignable to StringBridge, which for any adapted StringBridge is false since the String2FieldBridgeAdaptor does not implement StringBridge).
> From attached test case:
> org.hibernate.search.SearchException: FieldBridge class org.hibernate.search.bridge.String2FieldBridgeAdaptordoes not have a objectToString method: field value in DomainObject
>         at org.hibernate.search.engine.DocumentBuilderIndexedEntity.objectToString(DocumentBuilderIndexedEntity.java:601)
>         at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.buildSearchTerm(ConnectedMultiFieldsTermQueryBuilder.java:133)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list