-
Notifications
You must be signed in to change notification settings - Fork 14
[$40] Include "id" inside document "body" during indexing #20
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
@maxceem The code exists in the original taas-apis before it was moved to the ES processor. I also agree that the id field should be populated like other fields so that it looks consistent. |
@imcaizheng ok, let's do this. This is ready for pickup.
|
Challenge https://www.topcoder.com/challenges/647d40c1-9315-45a5-ba1f-94edd58a16c3 has been created for this ticket. |
Challenge https://www.topcoder.com/challenges/647d40c1-9315-45a5-ba1f-94edd58a16c3 has been assigned to aaron2017. |
PR created #21 and topcoder-platform/taas-apis#131 |
Verify whether
|
@maxceem There are a few other issues I just found:
|
@imcaizheng. Good catch regarding the index script. I did more debugging there and there are some issues with soft-deleting, we would handle it separately. Regarding the 2nd one, I couldn't reproduce it. The current issue is done, so I'm closing it. |
This ticket was not processed for payment. If you would like to process it for payment, please reopen it, add the |
Challenge https://www.topcoder.com/challenges/765d5478-361f-49e5-8027-6c2c975ed330 has been created for this ticket. |
Payment task has been updated: https://www.topcoder.com/challenges/765d5478-361f-49e5-8027-6c2c975ed330 |
@maxceem Cannot reproduce the second issues now. |
I've noticed that during indexing documents current implementation always omits "id" inside the document source, see code example https://github.com/topcoder-platform/taas-es-processor/blob/dev/src/services/JobProcessorService.js#L54
I haven't seen such an approach in other Topcoder ES Processsors and I don't know about any benefit of such approach.
@imcaizheng as I understand you implemented the initial code for this processor in the challenge https://www.topcoder.com/challenges/a7bc3928-5260-436e-af87-53adfa4c248f.
Could you please let me know, if this was done on propose, or we can update the code of the processor to keep the "id" inside the body?
There is no particular need to have "id" either, though it feels a bit inconsistent, as we define "id" in mapping but we don't populate it, so it is empty if we look at the data in ES:
The text was updated successfully, but these errors were encountered: