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
Update reference docs for Highlighter fragmenter #23754
Update reference docs for Highlighter fragmenter #23754
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@javanna Does this documentation look okay? |
hi @sudo-suhas the addition looks good thanks! The json is malformed though, which makes our build fail as we validate json snippets. You can reproduce that by running |
Ah.. Should have paid more attention while copying. Also, did not realise docs had a |
@sudo-suhas start with fixing your query. as for examples, I would look in our docs and take inspiration from there. |
@javanna I have pushed a commit with requested changes. However, setup of gradle, running tests, setting up test indices etc was non-trivial. I think it would be good if there was a slightly more detailed guide for contributors. I have created a gist here with |
@javanna Are there any changes required for this pull request? I wanted to get 1 right before doing the changes in the other pull request. |
jenkins test this please |
jenkins retest this please |
@javanna I know this is probably a low priority. However, please note that I have modified only one file in docs for which I ran the |
It looks like @javanna is doing something else. I reviewed and it looks good. I'll test it locally and merge if all looks good. |
Explain the fragmenter and add examples.
Explain the fragmenter and add examples.
I've merged to master and cherry-picked to 5.x and 5.4. |
Thanks @sudo-suhas! The docs really did look nice. |
@nik9000 Does it need to be cherry-picked to 5.3 as well? Docs not visible here https://www.elastic.co/guide/en/elasticsearch/reference/5.3/search-request-highlighting.html or https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html |
thanks @nik9000 and @sudo-suhas ! |
I was trying not to push anything to 5.3 because we're trying to keep it stable. But I already pushed a bunch of docs to it last night so I'm happy to cherry-pick there. |
Explain the fragmenter and add examples.
Highlighting supports an option
fragmenter
which is supported by the Plain fragmenter but the reference documentation does not mention it.Reference documentation for the same was added by collating information from the following sources:
Closes #23736