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

Cannot search " (single double-quotation) with q #99

Open
darashi opened this issue Aug 28, 2012 · 2 comments
Open

Cannot search " (single double-quotation) with q #99

darashi opened this issue Aug 28, 2012 · 2 comments
Labels

Comments

@darashi
Copy link
Member

darashi commented Aug 28, 2012

GCS returned 400 if " is searched.

At least, no error reported from ACS with this query. The response is like this:

{"rank":"-text_relevance","match-expr":"(label '\"')","hits":{"found":0,"start":0,"hit":[]},"info":{"rid":"90c9b0fdba3e834bf5a4adc5a44bb0213c6fda472737d9c72c83ead280a55a1ff45793bcc973b90f","time-ms":2,"cpu-time-ms":0}}

The index searched against does not have any record with " for searchable fields, so the response is consistent.
But it is uncertain what happens if some records have " in the index.

@kou
Copy link
Member

kou commented Aug 28, 2012

" in '...' means phrase search start and end. bq translator reports error if end " doesn't exist.
(I was thinking that \" is the syntax for searching " itself.)
But ACS doesn't treat it as an error. Uhm...

@darashi
Copy link
Member Author

darashi commented Aug 28, 2012

This is JSON, so \" means just ".

By the way, " " " (double-quotation, space, double-quotation, space, double-quotation) is recognized as (label '" " "'). hmm...

{"rank":"-text_relevance","match-expr":"(label '\" \" \"')","hits":{"found":0,"start":0,"hit":[]},"info":{"rid":"90c9b0fdba3e834bf5a4adc5a44bb0212773c26d3da56b25db84d3e4380d8cc3b901be631836be64","time-ms":1,"cpu-time-ms":0}}

Ah, it doesn't say anything... We can not see how the argument of label was interpreted...

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

2 participants