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

Summarize - how to switch off? #26

Closed
Leeloo5E opened this issue Feb 4, 2022 · 5 comments
Closed

Summarize - how to switch off? #26

Leeloo5E opened this issue Feb 4, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Leeloo5E
Copy link

Leeloo5E commented Feb 4, 2022

How can I switch off the summarize option?

'summarize' => new SummarizeOption(),

see https://oss.redis.com/redisearch/Highlight/#summarization

"RediSearch can perform summarization using the SUMMARIZE keyword. If no additional arguments are passed, all returned fields are summarized using built-in defaults."

A workaround is actually setting summarization to a dummy field, e.g.

->setSummarize(['dummy'])

@MacFJA MacFJA added the bug Something isn't working label Feb 4, 2022
@MacFJA
Copy link
Owner

MacFJA commented Feb 4, 2022

It's an error.
The PR #27 will fix that.


With the PR #27, SUMMARIZE will be disabled until you call ->setSummarize(...)

MacFJA added a commit that referenced this issue Feb 5, 2022
Fix Summary and Highlight always active [#26]
@MacFJA
Copy link
Owner

MacFJA commented Feb 5, 2022

@Leeloo5E Can you try with version dev-main#b0fcfe7766aeb4ef46dadddd564c0c33afd1c1c6 ?

If it's good for you I will make a new release

@Leeloo5E
Copy link
Author

Leeloo5E commented Feb 7, 2022

@MacFJA works good. Thank you very much :-)))

@pierrexp9
Copy link
Contributor

Hi @MacFJA,
Can we expect this new release soon ? (I'm also a bit bothered by the forced Highlight and the forced Summarize)

@MacFJA
Copy link
Owner

MacFJA commented Mar 12, 2022

I completely forgot !

I just push the new release the version 2.1.1

@MacFJA MacFJA closed this as completed Mar 12, 2022
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

No branches or pull requests

3 participants