[FTS] Impossible to do a Boolean field search
Description
Components
Fix versions
Labels
Environment
None
Link to Log File, atop/blg, CBCollectInfo, Core dump
None
Release Notes Description
None
Activity
Show:
MartyM January 27, 2017 at 6:07 PM
Querying a boolean field is now supported. They syntax is to put "bool": true inside a query (optionally also specify a field like you would for any other query.
Steve Yen January 26, 2017 at 10:05 PM
(note from today's bug scrub - this might be resolved already?)
MartyM November 15, 2016 at 3:31 PM
fix up for review in bleve: https://github.com/blevesearch/bleve/pull/499
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Aruna Piravi
Aruna PiraviReporter
Will Gardella
Will GardellaIs this a Regression?
Unknown
Triage
Untriaged
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Sentry
Linked Issues
Sentry
Linked Issues
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created September 21, 2016 at 10:32 PM
Updated February 9, 2017 at 9:44 PM
Resolved January 27, 2017 at 6:07 PM
Instabug
This was originally asked on the forums:
https://forums.couchbase.com/t/fts-boolean-field-query-json-api/10030
It's apparently not possible to perform a Boolean field query today. I verified this on 4.5.0 (build 2601), and I believe Marty checked it on Spock. Once we fix this, it will need a new functional test case.
To reproduce, see the sample index mapping below that uses the travel-sample bucket.
This query string query shows that the index works:
This is what the Boolean field query should look like, but I get a syntax error (whether or not I make 'true' a string):
Here’s the text index mapping I used for the queries above, which indexes the travel-sample bucket: