[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-168) Add the ability to disable automatic indexing both on a per index level and programmatically

Remy Gendron (JIRA) noreply at atlassian.com
Thu May 13 11:27:24 EDT 2010


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

Remy Gendron commented on HSEARCH-168:
--------------------------------------

I found this issue while searching for a way to temporarily disable the indexing. My use case is that the app can generate test data itself at startup when needed. Transparent indexing dramatically slows down this process as batch updates cannot be used during this process (hierarchies are being created). The app also does a partial, manual re-indexing of changed entities since the app was last stopped to catch external updates to the database while it was down.

I would really much like the ability to disable transparent indexing while my test dataset is being generated. Thereafter, the partial re-indexing will occur and batch index these new entities.

Thank you for this great piece of software.

> Add the ability to disable automatic indexing both on a per index level and programmatically
> --------------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-168
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-168
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: engine
>            Reporter: Eric Winter
>            Priority: Minor
>
> It is very resticitive in an application that has multiple indexes to only allow the disabling of automatic indexing on an application wide level (or at least SessionFactory wide...).  I can see it being very useful to have auto indexing on a per index basis.
> Also, it would be nice to be able to turn auto indexing off and on programmatically using something like
> Search.setAutoIndexing("myIndex", false); //per index
> and
> Search.setAutoIndexing(false); //global

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