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

languages not filtered when using custom tokenizer #3991

Closed
sjhewitt opened this issue Sep 13, 2019 · 0 comments
Closed

languages not filtered when using custom tokenizer #3991

sjhewitt opened this issue Sep 13, 2019 · 0 comments

Comments

@sjhewitt
Copy link
Contributor

What version of Dgraph are you using?

master

Have you tried reproducing the issue with the latest release?

yes

Steps to reproduce the issue (command/config used to run Dgraph).

  • run dgraph using the anagram tokenizer: dgraph alpha --custom_tokenizers anagram.so
  • schema:
word: string @index(anagram) @lang .
  • data:
[
	{ "word@en": "airmen", "word@fr": "no match" },
	{ "word@en": "no match", "word@fr": "marine" }
]
  • query:
{
  q(func: allof(word@en, anagram, "remain")) {
		word: word@en
	}
}

Expected behaviour and actual result.

Actual Result - results where any language strings match are returned:

{
  "data": {
    "q": [
      {
        "word": "airmen"
      },
      {
        "word": "no match"
      }
    ]
  }
}

Expected Result - only nodes where strings from the specified language match are returned:

{
  "data": {
    "q": [
      {
        "word": "airmen"
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant