[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-49?page...
]
Stefan Norberg commented on HSEARCH-49:
---------------------------------------
Sure, I wouldn't know the Search lingo but here's the idea very much meta syntax)
Basically I was thinking about not having to write code to manage the object index
lifecycle (might be different from the object (persistent) lifecycle, right?
@SearchableIf(releaseDate != null && !withdrawn)
class PressRelease
/**
* is set when a press release is public
**/
private Date releaseDate;
/**
* is set if the press release is withdrawn
*/
private boolean withdrawn;
}
Would something like that make sense?
Ability to add to/remove from index based on object state
---------------------------------------------------------
Key: HSEARCH-49
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-49
Project: Hibernate Search
Issue Type: New Feature
Reporter: Stefan Norberg
As we discussed after your session on JavaOne, I'd like to see a feature that adds an
object to the index based on a expression.
Example: An object travels through a state machine and gets past the "approved"
state and should now be indexed for search. Later the object gets "unapproved"
and should be removed from the search index.
It would be nice to have a condition on a combination of bean properties if the object
should be in the index.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira