Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-425)
Reimplement support for compressed fields (support removed in Lucene3)

Anupam M (JIRA)

2010-03-14

Replies: Find Java Web Hosting

Author LoginPost Reply

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

Sanne Grinovero commented on HSEARCH-425:
-----------------------------------------

I have been playing around with it, no matter what something has to break: there's no point in the current code where we can "intercept" what fieldbridges do.
I am attaching a patch which is using a totally new use for the org.hibernate.search.bridge.LuceneOptions (if we go this way it might as well change name), in which the default impl will hide the COMPRESS complexity - making it possible to eventually plug a custom strategy in future or change some logic while hiding it from API.

This is just a POC to get some thoughts on the table - no tests. What should we do with existing getters in the Interface? @deprecate or remove?
Deprecation is not totally safe here as behavior will be different, but still it might look like the same (as Lucene is transparently decompressing..)

A nice side effect from the proposed signature is that code in the bridges is much simplified (have a look at all lines removed from test bridges) and some optimizations like "skip for empty string" are applied consistently.

Didn't play with decompress yet: still wondering if above proposal is not viable if we shouldn't remove the feature.

> Reimplement support for compressed fields (support removed in Lucene3)
> ----------------------------------------------------------------------
>
>           Key: HSEARCH-425
>           URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-425
>         Project: Hibernate Search
>       Issue Type: Task
>       Components: documentation, mapping
>        Reporter: Sanne Grinovero
>        Assignee: Sanne Grinovero
>         Fix For: 3.2.0.Beta2
>
>
> "native" support was removed from Lucene3, we could re-implement it in another way, as described in Lucene's javadocs. Or drop the feature.

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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.