Hi,
Quote:
could you share what you did to make it work?
That was a dirty hack I'd not recommend in stable work, unless you're desperate :) Anyway, amin shares his code in the first post.
Quote:
I'd also like to disable Hibernate Search when saving one specific instance. My use case is the following: When I do a full text query and order by relevance, the records return in a certain order. When a user views the details of a record, I need to update the "view count" (not indexed in lucene). When I perform the same query again afterwards, that particular record has disappeared from the list (I guess because the surrounding records have the same relevance index, and when the index get loaded again after a save, lucene has placed the record in another position). So the user suddenly doesn't see that particular record anymore.
That shouldn't work as you described, something is wrong. Please open a new thread about it if you can't find the issue.
Anyway if that is the reason for you to want disabling indexing, using the latest snapshot of 3.4 should meet your needs as it will skip reindexing of object where you only changes non-indexed properties:
HSEARCH-361, so this behaviour would be automatic.