dongritan5654 2019-02-25 15:36
浏览 86

Couchbase GO SDK不区分大小写

I'm running this code which is case sensitive:

cbft.NewMatchQuery("London").Field("Town")

How can I make the search case insensitive, so that searching for "London" or "london" would match "London" in the Couchbase database?

  • 写回答

1条回答

  • drasv0904 2019-02-25 20:22
    关注

    According to this blog post:

    Full-Text Searches are case insensitive and use the match query expression. In order to perform FTS, you must create Full-Text Index on appropriate properties. You can create an index on one or more properties.

    You are using the cbft package (Couchbase Full Text), and probably you haven't set the Full-Text index on the appropriate properties (Town).
    For setting up the index, read carefully the documentation.

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序