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 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?
  • ¥40 串口调试助手打开串口后,keil5的代码就停止了