-
Notifications
You must be signed in to change notification settings - Fork 3
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
Field display improvements #1710
Conversation
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.
We still need the regex-highlight pipe for the following situations:
- highlighting in the manual
- highlighting when the Elasticsearch settings don't allow highlighting via ES.
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.
I fully agree with the reorganization of everything document-related into the document
folder. Thanks! Also good to have a keyword pipe to create better formatting of the keyword content. Just a double-check: this will only affect the display of the keyword field, and not affect the internal representation, so that no spaces will be added to the route, right?
I do not agree with deleting the regex pipe. I see that indeed the document views don't use it anymore (though I think there were still cases where Elasticsearch highlight is not an option, something to discuss IRL), but for highlighting search terms in the manual it should still be relevant.
I looked through the highlighting documentation to figure out what kind of cases you could be referring to, but I can't find any. To my surprise, even a text mapping is not a strict requirement. As far as I know, the only potential issue is that that the
What do you mean by "should be relevant"? It's not used (see #1593). If you believe this should be re-introduced, can you make an issue for that? |
Ah, I didn't see #1593, so I assumed that the manual search was still a reality. In that case, it's indeed fine to remove the regex highlighter. The |
If you mean things like wildcards or fuzzy matching, if I recall correctly, that was the reason why we stopped using the regex highlighter (which does not support those). The documentation does suggest that certain types of queries are not fully supported on all algorithms. ( This isn't necessarily relevant for us because we only use I can't find any example of |
I haven't implemented the Elasticsearch highlighting, but I remembered there were some limitations of what could be done without the Anyway, fine to merge this. |
This makes some minor updates to the components to display fields. Includes Jelte's suggestions in #1708
Also:
a, b
instead ofa,b
)Internal changes:
ContentFieldComponent
.DocumentModule
to/frontend/src/app/document/
.DocumentModule
that were not actually used anywhere else.RegexHighlightPipe
.