-
Notifications
You must be signed in to change notification settings - Fork 757
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
Feature/search uhighlighter #2732
base: master
Are you sure you want to change the base?
Conversation
Don't worry about squashing the changesets. I am well aware you craft the csets carefully. In general I squash only csets that are not of value w.r.t. history like small code review induced changes. |
c0395a4
to
34ab983
Compare
Rebased with no conflicts |
25925aa
to
fde4ed2
Compare
Rebased with just a conflict in a SearchEngineTest.java import due to #2983. |
fde4ed2
to
f10f0f1
Compare
Rebased with just conflicts in copyright text. |
@tarzanek , please would you take a look at this one if you get some time? |
I just merged #3130 , thank you for that I will try to review and sorry for delays |
@ahornace will you have time to have a quick look at this too? |
f10f0f1
to
ccc5e17
Compare
Just rebased on master to resolve conflicts from #3130, which had been extracted from this patch. |
ccc5e17
to
0736f12
Compare
- path, filename, and directory are now immutable, so require initialization
Addresses the source-code related part of oracle#2612 since `OGKUnifiedHighlighter` allows straight- forward, alternate formatters. `HistoryContext` is still a custom highlighting, so it will still return HTML-like content.
0736f12
to
bd1e3ae
Compare
Hello,
Please consider for integration this patch to add
HitFormatter
to extendOGKUnifiedHighlighter
for use bySearchEngine
.There are some known, pending migrations to
uhighlight
remaining in OpenGrok.Hit
generation was one area, andHistoryContext
continues to be a legacy highlighter.@wy193777 requested in #2612 that search results not be HTML-ized. This patch mostly addresses the request by enhancing
SearchEngine
to return code-matching results forfull
|defs
|refs
and to add substring offsets to theHit
results in lieu of the former HTML-emphasis.hist
searches will still return legacy, HTML-fragment results viaHistoryContext
.For testing, I uncommented
SearchEngineTest.testSearch()
but set it to@Ignore
. The test is still useful even with its race condition bugs.Thank you.
(@vladak, I see you're squash-merging again; please may I ask you don't subject my PRs to that.)