Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Adding sortfields, removes facets from response #9

@soreng

Description

@soreng

When trying to order a result, we have run into an issue, where the results would not include any facets.

Example with no facets:

var query = searcher.CreateQuery(); // gets a query from a BoboFacetSearcher

query = query.Facet("CategoryId").And();

query = query.GroupedOr(new[]{"Type"}, "type1", "type2", "type3").And();

var executor = query.All().OrderBy(new SortableField("Type"));

var results = executor.Execute(10);

To fix the above, we have moved the call to OrderBy to it's own line.

var executor = query.All();
executor.OrderBy(new SortableField("Type"));

var results = executor.Execute(10);

It seems that the result of the OrderBy output the underlying LuceneQuery from Examine, and not the BoboFacetQuery expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions