- Elasticsearch Blueprints
- Vineeth Mohan
- 66字
- 2021-07-16 13:39:33
Implementing a category filter
Normally, the category fields are of the type string. We need to index this unanalyzed field to match the exact term. In fact, Elasticsearch uses a term filter for the purpose of matching strings:

The following snippet shows you how to use a terms filter:
{ "filtered" : { "filter" : { "term" : { "category" : "Books" } } } }
推薦閱讀
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- Software Defined Networking with OpenFlow
- Python快樂編程:人工智能深度學習基礎
- Learning Docker
- Visual Basic程序設計教程
- Python機器學習實戰
- Java Web開發技術教程
- Hands-On Full Stack Development with Go
- Mastering Concurrency Programming with Java 9(Second Edition)
- Web Developer's Reference Guide
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- JavaScript設計模式與開發實踐
- JavaScript程序設計基礎教程(慕課版)
- Image Processing with ImageJ(Second Edition)
- Python算法交易實戰