-
Notifications
You must be signed in to change notification settings - Fork 473
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
JAMES-4100 Improve Search Snippet display #2583
JAMES-4100 Improve Search Snippet display #2583
Conversation
...ch/src/main/java/org/apache/james/mailbox/opensearch/search/OpenSearchSearchHighlighter.java
Outdated
Show resolved
Hide resolved
...ch/src/main/java/org/apache/james/mailbox/opensearch/search/OpenSearchSearchHighlighter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read it, nothing to add
Lucene tests failed: https://ci-builds.apache.org/job/james/job/ApacheJames/job/PR-2583/1/testReport/ |
...ch/src/main/java/org/apache/james/mailbox/opensearch/search/OpenSearchSearchHighlighter.java
Outdated
Show resolved
Hide resolved
Have you tried StringUtils.remove(s, '>); Or CharMatcher.is('>').removeFrom(s) ? |
Don't you want to keep at least one character after removing? |
I do not know: how would it look like in the end user display? |
Example: (contentA is the highlighted part) |
I wonder if |
The solution for this is not just |
@hungphan227 Status of this? Tests still not fixed I believe => https://ci-builds.apache.org/job/james/job/ApacheJames/job/PR-2583/1/testReport/ |
Actually I don't know what I should do. Either removing all Therefore, I suggest closing this ticket and leave things as before. Anyway removing > is not really important. |
An end user might disagree with you on that I think :) Honestly I get that removing entirely the trailings I would be ok with the initial solution, aka folding @chibenwa what are your thoughts here? |
Ok |
mailbox/api/src/main/java/org/apache/james/mailbox/SearchUtil.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but did you try to run locally related tests though? Would be surprised that everything is green :)
Fixed in mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneSearchHighlighter.java Sth wrong with CI. Need to restart CI |
=> #2599 is what's wrong with the CI :) |
Can we have a look at how it looks like with the frontend? |
cc14340
to
5089a3c
Compare
Updated to remove before indexing |
mailbox/opensearch/src/main/java/org/apache/james/mailbox/opensearch/json/IndexableMessage.java
Outdated
Show resolved
Hide resolved
mailbox/store/src/main/java/org/apache/james/mailbox/store/search/SearchUtil.java
Outdated
Show resolved
Hide resolved
...box/api/src/test/java/org/apache/james/mailbox/searchhighligt/SearchHighLighterContract.java
Outdated
Show resolved
Hide resolved
5e4df50
to
bf8d881
Compare
@Arsnael could you help me restart? |
No description provided.