- 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" } } } }
推薦閱讀
- PHP動態(tài)網(wǎng)站程序設(shè)計
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- Intel Galileo Essentials
- C#完全自學教程
- Visual Basic程序設(shè)計實驗指導(第4版)
- SQL Server 2016數(shù)據(jù)庫應用與開發(fā)習題解答與上機指導
- C語言程序設(shè)計
- Responsive Web Design by Example
- Learning FuelPHP for Effective PHP Development
- R語言與網(wǎng)絡(luò)輿情處理
- 零基礎(chǔ)學C語言程序設(shè)計
- OpenCV Android開發(fā)實戰(zhàn)
- SQL Server實例教程(2008版)
- Building a Media Center with Raspberry Pi
- Getting Started with hapi.js