-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support Fulltext Indexing by Entity's status #138
Comments
So, rather than automatically fulltext index content immediately after it is set, you want to delay fulltext indexing until some later time of your choosing? i.e. when an entity's status changes from "under review" to "approved" for example? Is that right? I'm guessing your entity is being routed around some sort of workflow? |
yes, that right |
Hi @lmtoo I was thinking about this request and I have a proposal that I wanted to run past you. Atm the fulltext indexing capability isn't a (spring) service yet. The indexing logic for both Elasticsearch and SolrSearch (if I recall you are using elastic) are implemented directly in On the other hand I don't think there is much point in Spring Content having some sort of customizable fulltext triggering f/w; i.e. the logic that detects change in entity "status" and calls the fulltext indexing service. There are plenty of good trigger mechanisms in spring (aop, data rest event handlers, ...) and jpa (listeners) so I think the best alternative here is for you to implement that piece yourself using one of these existing frameworks. Otherwise, we would just be re-inventing the wheel to some extent and probably not really doing it justice. I would personally recommend using spring aop but you could use any. A spring aop solution might look something like this:-
Does this sound reasonable to you? |
FulltextIndexingService is well, I can't wait to use this new feature |
Hi @paulcwarren , I have seen this new feature just now ,but I can't close fulltextIndex right after the content set event through config. |
Hi @lmtoo sorry to hear that. I added this test. It was green in this build so I wanted to check my understanding of the issue. How does your case differ from the test? |
Hi, @paulcwarren I'm sorry. I mean disable automatically fulltext index by configration application.properties. so I can index by |
I see. I had wondered if you wanted to do that. I should have asked. Make sense. I will see what we can do. Should be easy I think. |
@lmtoo do you use spring boot? spring boot offers much better support for properties and conditional beans than regular spring. We don't have a spring boot starter for elasticsearch but we should have one so I am thinking of implementing the new enable/disable property in a new |
Hi @paulcwarren , I have a problem , fulltext by entity's status, this entity already make association with content, but by this framework fulltext right after the content set. Is a avaliable provide a trigger to entity's content Indexing ?
The text was updated successfully, but these errors were encountered: