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
HSEARCH-3573 Use consistent naming for hits and projections #1972
Conversation
Jenkins, retest this please |
Pull Request Test Coverage Report for Build 6
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I'm very happy about having now a consist use of the letters for marking generics.
I've just few comments.
.../src/main/java/org/hibernate/search/engine/search/dsl/query/SearchQueryContextExtension.java
Outdated
Show resolved
Hide resolved
...csearch/src/main/java/org/hibernate/search/backend/elasticsearch/ElasticsearchExtension.java
Outdated
Show resolved
Hide resolved
.../java/org/hibernate/search/util/impl/integrationtest/common/stub/mapper/StubMapperUtils.java
Outdated
Show resolved
Hide resolved
@@ -176,7 +176,7 @@ such as `SearchPredicateFactory` or `FieldSortBuilder`. | |||
|
|||
Note that the APIs implemented by the engine include ways for the mapper to wrap the resulting search query | |||
(`SearchQueryWrappingDefinitionResultContext#asWrappedQuery`). | |||
Also, the SPIs implemented by backends allow mappers to inject an "object loader" (see `SearchQueryBuilderFactory.asObject`) | |||
Also, the SPIs implemented by backends allow mappers to inject an "entity loader" (see `SearchQueryBuilderFactory.asObject`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should expose in our documentation in a very clear way what we meant for an entity.
Maybe it is just a first class object to handle indexes and
not necessarily an Hibernate ORM Entity nor an Entity Bean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a TODO to explain that where we explain the concept of "mapping".
engine/src/main/java/org/hibernate/search/engine/search/loading/spi/LoadingResult.java
Show resolved
Hide resolved
...pojo/src/main/java/org/hibernate/search/mapper/pojo/mapping/impl/PojoIndexedTypeManager.java
Show resolved
Hide resolved
…ntity queries and projections
…rmer This was replaced with projections some time ago, so we don't need the extra complexity that it used to bring.
… generic projection types
…in the documentation
Thanks! I addressed your comments. Waiting for CI... |
@yrodiere +1 to merge. May I do it after the CI finishes? |
@fax4ever Sorry I didn't see you message. Well, I'm here now, I'll merge. Thanks! |
@yrodiere it's the same. Thank you |
HSEARCH-3573: Use consistent naming for hits and projections
Based on #1971 , which should be merged first.=> DoneThis is strictly about method and generic type parameter names. There's a lot of changes, but very few of them are significant. I just need to know if the idea seems sound: maybe you can determine that from the commit messages? I don't want to force you to go through the entire diff...
The only significant change is the renaming of the
object()
projection toentity()
, to be consistent with the wording ofasEntity()
when creating a query.