You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/25 00:35:43 UTC

[GitHub] [couchdb] tonysun83 opened a new pull request #2486: quote strings for all text values

tonysun83 opened a new pull request #2486: quote strings for all text values
URL: https://github.com/apache/couchdb/pull/2486
 
 
   <!-- Thank you for your contribution!
   
        Please file this form by replacing the Markdown comments
        with your text. If a section needs no action - remove it.
   
        Also remember, that CouchDB uses the Review-Then-Commit (RTC) model
        of code collaboration. Positive feedback is represented +1 from committers
        and negative is a -1. The -1 also means veto, and needs to be addressed
        to proceed. Once there are no objections, the PR can be merged by a
        CouchDB committer.
   
        See: http://couchdb.apache.org/bylaws.html#decisions for more info. -->
   
   ## Overview
   
   When a user issues a range query $lt, $lte, $gt, $gte for text indexes,
   the query is translated into a MIN, MAX range query against clouseau.
   If not quoted, an error occurs:
   
   {"error":"text_search_error","reason":"Cannot parse
   '(a_3astring:[\"\" TO string\\ containing\\ space})'..}
   
   This is because the string is broken up into 3 tokens which the parser
   cannot parse. If we add quotes to the string, the the range query works
   correctly.
   
   
   ## Testing recommendations
   
   Tests added to mango test suites, but requires clouseau to be setup. Text tests have already
   been run and passes.
   
   ## Related Issues or Pull Requests
   
   <!-- If your changes affects multiple components in different
        repositories please put links to those issues or pull requests here.  -->
   
   ## Checklist
   
   - [X] Code is written and works correctly
   - [X] Changes are covered by tests
   - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini`
   - [ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] tonysun83 merged pull request #2486: quote strings for all text values

Posted by GitBox <gi...@apache.org>.
tonysun83 merged pull request #2486: quote strings for all text values
URL: https://github.com/apache/couchdb/pull/2486
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2486: quote strings for all text values

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2486: quote strings for all text values
URL: https://github.com/apache/couchdb/pull/2486#issuecomment-580976739
 
 
   Hrm, why did this merge without triggering the `python-black` failure that required #2505 to land?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services