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

ContentFunctionsDescriptor fails to parse field from scored functions #2441

Open
apmoriarty opened this issue Jun 26, 2024 · 0 comments · May be fixed by #2440
Open

ContentFunctionsDescriptor fails to parse field from scored functions #2441

apmoriarty opened this issue Jun 26, 2024 · 0 comments · May be fixed by #2440
Assignees
Labels
bug Something isn't working

Comments

@apmoriarty
Copy link
Collaborator

The ContentFunctionsDescriptor will fail to parse the field from a scored phrase when calling fieldsAndTerms

For example:

Given a function like content:scoredPhrase(FIELD, -1.5, termOffsetMap, 'foo', 'bar') the call to fieldsAndTerms should return {FIELD}, {foo, bar}, but it will return an empty field set.

Given a function like content:scoredPhrase((FIELD_A || FIELD_B), -1.5, termOffsetMap, 'foo', 'bar') the call to fieldsAndTerms should return {FIELD_A, FIELD_B}, {foo, bar}, but it will return an empty field set.

@apmoriarty apmoriarty added the bug Something isn't working label Jun 26, 2024
@apmoriarty apmoriarty linked a pull request Jun 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant