[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-387) Disable the automatic indexing as per session basis

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Apr 8 10:52:42 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved HSEARCH-387.
--------------------------------------

      Assignee: Emmanuel Bernard
    Resolution: Won't Fix

I thought about various solutions but they all end up very very nasty hacks involving thread locals and not reliably disabling it at the end of the session "use".
You can use two approaches though:
 - disable the event processing altogether and manually call .index or .purge when needed
 - start two SessionFactories, one with the HSEARCH event processing enabled and one with the HSEARCH event processing disabled. And open a Session from the one you need at a given time

> Disable the automatic indexing as per session basis
> ---------------------------------------------------
>
>                 Key: HSEARCH-387
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-387
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.1.1.GA
>            Reporter: Behrang Javaherian
>            Assignee: Emmanuel Bernard
>
> We are using the hibernate search and automatic indexing to index our model objects. The issue that we got is that anytime we touch a domain model and save the object, hibernate search is updating the underlying indexes and since our model objects are big it is time consuming. The are many cases that we know that the index doesn't need to be updated ( Like someone is just attaching an image to an article, etc). Is it possible to provide some sort of functionality to disable the automatic re-indexing per session.
> Thanks
> Behrang Javaherian
> http://www.beyondng.com

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