• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Understanding “match” and “term” Operators in Elastic Search

Posted on October 14, 2025

A user requested assistance with using the dal query to get a specific data index for a particular service on a given device. Another user explained the differences between "match" and "term" operators and how to use them in Elastic Search queries. The requested help was provided.


Read the entire ‘Understanding "match" and "term" Operators in Elastic Search’ thread below:

I think this is something an API pro would be able to rattle off quickly. I am trying to use the dal query to get a specific data index and its really a struggle. I need to return the status of a specific service for a specific device so I can get that data and pass it to my next step in the workflow. here is what I have so far:

“`{

"meta": { "source": "DebugSpoolerQueryUppercaseMatch" },

"data_query": {

"size": 10,

"from": 0,

"sort": [{ "_created": "desc" }],

"query": {

"bool": {

"must": [

{ "match": { "name": "Spooler" } },

{ "match": { "device_name": "[device.domain.COM](http://device.domain.COM)" } }

]

}

}

}

}“`

https://api.controlup.com/edge/api/dal/builtin_services2

but its not getting the services from the right device

it just returns the list of devices with spooler

any help would be very much appreciated!


So when I need to make Elastic Search queries, I just describe the index to and what I’m looking for


“`{

"meta": { "source": "DebugSpoolerQueryUppercaseMatch" },

"data_query": {

"size": 10,

"from": 0,

"sort": [{ "_created": "desc" }],

"query": {

"bool": {

"must": [

{ "term": { "name.keyword": "Spooler" } },

{ "term": { "device_name.keyword": "CCLEAR-LT.WORKGROUP" } }

]

}

}

}

}“`


You gave him a fish


match = fuzzy matching

term = exact matching

keyword because by default Elastic Search (ES) will tokenize text.

CCLEAR-LT.WORKGROUP turns into cclear, lt, workgroup. With a match operator that would return other workgroup devices, other laptops, etc.

Term tells ES to not tokenize the search input.

Keyword tells ES to use the raw value of the field, not the tokenized value.

You need both for exact text matching


awesome thank you guys!!

Continue reading and comment on the thread ‘Understanding “match” and “term” Operators in Elastic Search’.  Not a member? Join Here!


Categories: All Archives
Topics: Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..