Skip to content

Conversation

@yrodiere
Copy link
Member

@yrodiere yrodiere commented Sep 13, 2019

https://hibernate.atlassian.net/browse/HSEARCH-3606

Based on #2084 , which should be merged first. => Done

I renamed SearchSessionWritePlan to SearchIndexingPlan. It's both simpler, and more to the point: this is about indexing.
Also, it doesn't mention the session, which could prove useful in the future if we want to use it in APIs allowing users to implement their own mass indexer

I renamed SearchWriter to SearchWorkspace. The new name is still quite generic, but it makes more sense: a workspace is where work is done, it delimits what part of the indexes will affected.
Also, this name would be suitable for a future zero-downtime indexing solution: by creating a workspace with specific parameters, a user could trigger the creation of a temporary workspaces targeting temporary indexes, which could ultimately replace the main indexes.

@yrodiere yrodiere added the Waiting for other pull request Based on another PR that should be merged first label Sep 13, 2019
@fax4ever fax4ever self-requested a review September 16, 2019 10:03
@fax4ever fax4ever self-assigned this Sep 16, 2019
Copy link
Contributor

@fax4ever fax4ever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!
I've just a doubt. Actually it's a while that I'm asking to myself if we need to keep both prepare and process terms, not having a single term such for execute.
Anyway +1 to merge these changes from me.

SearchWorkspace = SearchScope + tenantId
For consistency with the ORM SearchIndexingPlan,
and also because this class will indeed always be about indexing and
nothing else.
Both consistency with the SearchIndexingPlan and internal consistency.
…dexingPlan

For consistency with the ORM SearchIndexingPlan,
and also because this class will indeed always be about indexing and
nothing else.
For consistency with PojoIndexingPlan and APIs,
and also because these classes will only ever be about indexing.
…ocumentWorkExecutor to IndexIndexer

Because these classes will only ever be about indexing or deleting
documents.
…ndexWorkExecutor to IndexWorkspace

For consistency with the new SearchWorkspace API.
@yrodiere yrodiere added Ready for review and removed Waiting for other pull request Based on another PR that should be merged first labels Sep 17, 2019
@yrodiere yrodiere merged commit 32a1cda into hibernate:master Sep 17, 2019
@yrodiere
Copy link
Member Author

Merged, thanks!

@yrodiere yrodiere deleted the HSEARCH-3606 branch September 18, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants