Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

DOM Contains() filter returns fuzzy matches instead of filtering by substring?

45 views4 hours agoDataMiner Object Model
2
Enis Abaza [SLC] [DevOps Advocate]249 1 day ago 1 Comment

Using DomInstanceExposers.FieldValues.DomInstanceField(fieldId).Contains(searchValue) returns unexpected results. The filter appears to perform fuzzy/tokenized matching rather than exact substring matching.

Environment:
- DataMiner 10.5.0.0-16432-CU8

Code:

var customerNameFieldId = GetFieldDescriptorId("Customer Name");
var definitionFilter = DomInstanceExposers.DomDefinitionId.Equal(domDefinition.ID.Id);
var customerNameFilter = DomInstanceExposers.FieldValues.DomInstanceField(customerNameFieldId).Contains("00000000");

var combinedFilter = new ANDFilterElement<DomInstance>(definitionFilter, customerNameFilter);
var instances = DomHelper.DomInstances.Read(combinedFilter); // Returns 2646 instances

Result:

- Search value: "00000000"
- Expected: 0 results (no CustomerName contains this string)
- Actual: 2646 results

Verified by logging actual field values - none contain "00000000":

CustomerName: 'MBC FZ LLC - 110004' - Contains '00000000': False
CustomerName: 'MBC FZ LLC - 110002' - Contains '00000000': False
CustomerName: 'MX1 Internal - MX1Internal0000' - Contains '00000000': False
...

Questions:

1. Is Contains performing tokenized matching in OpenSearch rather than exact substring matching (like SQL LIKE '%value%')?

2. Is there an alternative filter for exact substring matching at database level?

3. Is this expected behavior or a bug?

Current workaround: Post-filtering in memory with LINQ .Where(), but this impacts performance on large datasets.

Alberto De Luca [DevOps Enabler] Posted new comment 4 hours ago
Alberto De Luca [DevOps Enabler] commented 4 hours ago

Great question – won't post an answer as I haven't played much with OpenSearch yet, but based on the output above, I'd say you're right and that Contains(…)-based DOM filter behaves like a tokenized search rather than a SQL LIKE '%value%'

So 1 & 3 would seem by design:
ref 2, unsure – have you tried a "term" query?
https://docs.opensearch.org/1.1/opensearch/query-dsl/term/#term

Subscribing to get an insight from more experienced users.

0 Answers

  • Active
  • Voted
  • Newest
  • Oldest
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin