dongwu5318 2018-10-03 15:12
浏览 62

Couchbase中的“不等于”

I want to be able to use a “where not equal to” WHERE clause in Couchbase.

This code works to INCLUDE “Not Available” records (once you set the Analyser to ‘keyword’)

cbft.NewMatchQuery("Not Available").Field("Status"),

But I want to be able to return all records where the Status is anything other than “Not Available”.

  • 写回答

1条回答

  • doulan1866 2018-10-04 08:14
    关注

    I am not familiar with the Go SDK, but have you tried to use the "Required, Optional, and Exclusion" operators (https://docs.couchbase.com/server/5.5/fts/fts-query-types.html)? They probably are exactly what you need.

    评论

报告相同问题?

悬赏问题

  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python