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

Got "Query is invalid. SyntaxError" when build json examples. #1348

Closed
saukymo opened this issue Apr 22, 2022 · 6 comments
Closed

Got "Query is invalid. SyntaxError" when build json examples. #1348

saukymo opened this issue Apr 22, 2022 · 6 comments
Labels

Comments

@saukymo
Copy link

saukymo commented Apr 22, 2022

Describe the bug

Which version of tantivy are you using?
If "master", ideally give the specific sha1 revision.

tantivy v0.17.0

To Reproduce

  1. cargo new tantivy-examples
  2. cd tantivy-examples
  3. add tantivy = "0.17" to cargo.toml
  4. replace main.rs with https://github.com/quickwit-oss/tantivy/blob/main/examples/json_field.rs
  5. cargo run
  6. Got Error: InvalidArgument("Query is invalid. SyntaxError")

If your bug is deterministic, can you give a minimal reproducing code?
Some bugs are not deterministic. Can you describe with precision in which context it happened?
If this is possible, can you share your code?

@saukymo
Copy link
Author

saukymo commented Apr 25, 2022

Tested with master branch: Compiling tantivy v0.17.0 (https://github.com/quickwit-oss/tantivy#ae83fc82) has no issue.

@fulmicoton
Copy link
Collaborator

Confirmed.

@fulmicoton fulmicoton added the bug label Apr 26, 2022
@kamibo
Copy link

kamibo commented May 13, 2022

It looks like "query-grammar" crate has not been bumped when releasing the last version (0.17).

@saroh
Copy link
Contributor

saroh commented May 20, 2022

It should be fixed on main following #1373 , wasn't aware of there was an issue open.

@fulmicoton
Copy link
Collaborator

Awesome thank you @saroh

@waywardmonkeys
Copy link
Contributor

@fulmicoton This can be closed, it works on master (I can build and run that example without an assertion / error.)

@PSeitz PSeitz closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants