Hi all,
I am having a problem with my query builder when I use polymorphism. I have an abstract class and if I try to initialize the QueryBuilder with this abstract class to make the sentence, it does not work.
In this example, BookEntity is the abstract class.
Is there other way to create the facets or I must use the querybuilder to create the facets?
Code:
builder = fullTextSession.getSearchFactory()
.buildQueryBuilder()
.forEntity(BookEntity.class).get();
autorityFacetingRequest = builder.facet().name("Autority")
.onField("autorityName.autorityname_untokenized").discrete()
.orderedBy(FacetSortOrder.COUNT_DESC)
.includeZeroCounts(false).createFacetingRequest();
Thanks in advance.