Skip to content
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

Incomplete facets when calling SearchResult.String() #1763

Closed
samiemad opened this issue Dec 1, 2022 · 0 comments · Fixed by #1764
Closed

Incomplete facets when calling SearchResult.String() #1763

samiemad opened this issue Dec 1, 2022 · 0 comments · Fixed by #1764
Milestone

Comments

@samiemad
Copy link

samiemad commented Dec 1, 2022

SearchResult.String() does not include NumericRange and DateRange Facets in the output. Resulting in facets with empty Terms. E.g.:

Facets:
    CreationDate (15):
    State (15):
        Done (15)

Correctly checking the f.NumericRanges and f.DateRanges when looping over the facets should fix it. (in here https://github.com/blevesearch/bleve/blob/master/search.go#L549)

With that fixed, it correctly checks for and appends the respective ranges along with their counts, as expected:

Facets:
    CreationDate (15):
        ThisWeek (10)
        Older (5)
    State (15):
        Done (15)
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 a pull request may close this issue.

2 participants