Skip to content
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

Documents ignored due to content selection filter is accepted with isSuccess = true #3555

Open
jobergum opened this issue Sep 27, 2017 · 0 comments
Milestone

Comments

@jobergum
Copy link
Member

If you have a selection filter in services.xml and your input document does not evaluate to true the document operation is still considered a success.

<document mode='index' type='foo' selection="foo.timestamp < now()"/>

The callback when feeding one such document using the java http vespa client will give you isSuccess() equals true. This is probably also the case for the other synchronous REST document apis.

@Override public void onCompletion(String docId, Result documentResult) { documentResult.isSuccess(); #True even for ignored document }

@johans1 johans1 added this to the later milestone Oct 4, 2017
@geirst geirst added this to Later in Search and content Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants