[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-664) Create a mechanism to allow custom class and field bridges to specify analyzers for all fields added to document

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jan 10 10:23:05 EST 2011


Create a mechanism to allow custom class and field bridges to specify analyzers for all fields added to document
----------------------------------------------------------------------------------------------------------------

                 Key: HSEARCH-664
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-664
             Project: Hibernate Search
          Issue Type: New Feature
          Components: engine
    Affects Versions: 3.3.0.Final
            Reporter: Hardy Ferentschik


Currently there is no easy way to specify which analyzer to use for custom fields added via class or custom field bridges. One work around is to write/use a custom scoped analyzer and use it in conjunction which the bridge. Another work around is the use of _ at ClassBridges_ with mutiple _ at ClassBridge_.
Using the query DSL one has to use _overridesForField_ to overcome the issue at query time. 

A more detailed discussion of the issue can be found on the Search forum - https://forum.hibernate.org/viewtopic.php?f=9&t=1008943&start=0

Possible solutions are:
* Extension of bridge api
* Introduction of a concept similar to _AnalyzerDiscriminator_ which only operates on field names. _AnalyzerDiscriminator_ depends on the entity state and is really only used during indexing. At search time this concept cannot be used, because there is no actual instance to pass to the query

-- 
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