Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1490

InternalServerFailureException when executing a Regex FTS query

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1.5
    • None
    • library
    • None
    • 1
    • SDK22

    Description

      The server returns an "unknown query type" error. The SDK is setting the field 'regex' in the request, but the server expects a 'regexp' field

      For example:

      InternalServerFailureException(<ec=5, category=couchbase.common, message=internal_server_failure (5), context=SearchErrorContext({'last_dispatched_to': '127.0.0.1:8094', 'last_dispatched_from': '127.0.0.1:63908', 'retry_attempts': 0, 'client_context_id': '920405-19d8-3044-7c95-8b66e2eeaa0591', 'method': 'POST', 'path': '/api/index/global_index_0b920c/query', 'http_status': 400, 'http_body': '{"error":"rest_index: Query, indexName: global_index_0b920c, err: bleve: QueryBleve parsing searchRequest, err: unknown query type","request":{"ctl":{"timeout":75000},"explain":false,"query":{"regex":".*hae.*"}},"status":"fail"}\n', 'index_name': 'global_index_0b920c', 'query': '{"regex": ".*hae.*"}', 'parameters': '{"ctl":{"timeout":75000},"explain":false,"query":{"regex":".*hae.*"}}', 'context_type': 'SearchErrorContext'}), C Source=[...]/couchbase-python-client/src/search.cxx:551>) 

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            Dimitris.Christodoulou Dimitris Christodoulou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty