You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I've tested, the "includes" and "excludes" options for the _source field have no effect - I always get the whole source. Here's a gist for recreating: https://gist.github.com/radu-gheorghe/5265495
I'm on 64-bit Ubuntu and I've used the .deb packages of 0.19.7 and 0.90.0RC1 with the same results.
Same problem here. Also, when I set the _source field to "enabled": False and create a custom stored property called original then I can usually retrieve it via GET ?fields=original, but never via search using "fields": ["original"]. In some cases (which I don't know how yet how to reproduce) the original field would completely disappear, even in GET requests.
Also, saying "_source": { "includes": ["original" ] } stores all fields (not just original), but if I flush the index then all fields (including original) are gone.
I can confirm, that this is a problem with translog as clint already mentioned. Currently entries from the translog are always returned as is by the ShardGetService. So, if the data is read from the translog and not from the indexreader (before a refresh or a flush), the problem occurs.
I have created a first preliminary and incomplete try to fix this, which I dont like very much and hope for input of other developers. See spinscale@4fccc68
Initial problem report:
As far as I've tested, the "includes" and "excludes" options for the _source field have no effect - I always get the whole source. Here's a gist for recreating:
https://gist.github.com/radu-gheorghe/5265495
I'm on 64-bit Ubuntu and I've used the .deb packages of 0.19.7 and 0.90.0RC1 with the same results.
@clintongormley's comments (thanks!):
Hmm - it doesn't work for get-by-id. It works for search though.
Flushing the index helped, so it looks like its a translog thing
The text was updated successfully, but these errors were encountered: