-
Notifications
You must be signed in to change notification settings - Fork 544
[FEATURE] Document '_name' field in 'function_score' query function definition and in explanation response #432
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
Comments
@reta: Looks like the |
Hey @Naarcha-AWS , precisely, the [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.10/query-dsl-function-score-query.html |
@Naarcha-AWS @dblock @reta Are we going to document this feature // any help I can provide on this one? 🤔 |
@lrynek thanks, it would be great to know where exactly we should add that, afaik there is (was) no documentation for function_score at all |
Reassigning to Fanit, as she is handling query DSL. We had another request to document function_score: #3218 |
The function_score query is now documented here: https://opensearch.org/docs/latest/query-dsl/compound/function-score/. We have not specifically called out _name, though. @kolchfa-aws - can you please take a look at this when you switch back to query DSL? Thanks! |
That would be wonderful, @lrynek, thanks! We have contributing info in the https://github.com/opensearch-project/documentation-website/blob/main/CONTRIBUTING.md file. Let me know if you have any questions, I'll be happy to help. |
Hi @lrynek , just checking in to see if you still want to update the content? Let us know if you need additional guidance. Thanks, in advance! |
@hdhalter It has taken me some considerable amount of time to read through all the docs about contributing 😅 I've stuck a bit in the setup of the project locally but I will love to proceed on the next 2 days max with it // maybe I wanted to be too perfect for the first iteration, sorry 😉 |
Thanks, @lrynek! Let me know if I can help in any way. |
I have to pass as stopped on |
Thanks for trying again @lrynek , we will take a look at the instructions to see what the problem is. In the meantime, there is an easier way to contribute. You can open the page you want to edit (for example, https://opensearch.org/docs/latest/query-dsl/compound/function-score/) and click the 'Edit this page' link. It allows you to edit the markdown and push up a pull request pretty quickly. You just won't be able to test the page locally. |
Ok, I thought for a larger contribution it would be advisable to not push a PR failing on many quality checks but if it's acceptable, I'll give it a try directly 👍 (but surely the docs drove me a bit that "perfect way", as I initially had taken the initiative with less effort in mind 😉) |
Yeah, for structural changes it makes sense to test locally, but changes to a single topic can typically be made directly to the page and pushed up. We do a pretty thorough review before merging, so we'll catch anything that may be out of whack. Of course, perfect PRs are preferred :), but we gladly accept any contribution that corrects technical inaccuracies. Thanks again. |
Hi @lrynek , just circling back to see if you wanted to attempt another pass at updating the content? We've made some updates and added a troubleshooting section to the contribution file, so maybe this time it will work? Thanks! |
Hi @hdhalter, thanks for that ❤️. I will give it a try over the week, as recently it was very busy period than at the moment of the first attempt. In touch - if I won't manage I will let you know within the upcoming week. Thanks for reminding 🙏🏻 |
@hdhalter @kolchfa-aws I've prepared the draft PR #7340 - please correct whatever makes sense there // I'm still on the explanation side (I'll setup the week that follows an analogical index as to the blog documents that are described in the docs to fetch actual OpenSearch generated response explanation in the example there). |
Is your feature request related to a problem?
As part of opensearch-project/OpenSearch#1711, we have introduced
_name
support of 'function_score' functions (complementing queries and filters in these regards). The_name
, if specified, is returned back as part of explanation whenever it dims possible (it applies to functions, filters and queries).What solution would you like?
Document the usage of
_name
field and its impact on explanation descriptions. Couple of examples below:What alternatives have you considered?
N/A
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: