Investigate Instance result discrepancies between FQM and inventory search

Description

Inventory utilizes OpenSearch while FQM utilizes PostgreSql. Functional differences between inventory search and FQM should be noted so documentation can be provided to end users.

Similarly constructed queries for Instances in Inventory often return different results than queries from FQM. We need to investigate and determine what, if any, issues are present. Based on the findings, we can determine if any issues need to be resolved in a future release. By not addressing account counts and results, we risk customers becoming frustrated with Lists and Bulk Edit apps.

Questions/items to investigate:

  • In FQM, the ‘CONTAINS’ operator is a regex search that looks for substring matches. is there an equivalent way to search for a substring that’s anywhere within the title in inventory?

  • by default, does inventory do any filtering of results?

  • are the FQM/inventory queries using the same indexes?

  • are there alternative ways to query in inventory to get a more similar result set? if so, document details

    • basic or advanced search

    • operator(s) used

    • wildcards or truncation

  • are there alternative ways to query in FQM to get a more similar result set?

 

The following examples are from the Quesnelia bugfest environment

Query

FQM results

Inventory results

(instance_title contains "Krakow")

900

458

(instance_metadata_updated_date >= "2024-04-01") AND (instance_metadata_updated_date <= "2024-05-01")

110,100

29,154

(instance_metadata_updated_date > "2024-06-01") AND (instance_metadata_updated_date < "2024-06-12") AND (instance_discovery_suppress == "true")

2

69

(instance_title == "Back to work")

0

1 record with Exact phrase search

 

(instance_title starts with "Back to work")

11

17 record with Starts with

 

 

 

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Priority

Development Team

Corsair

Release

Not For Release

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created June 12, 2024 at 8:23 PM
Updated 5 days ago
TestRail: Cases
TestRail: Runs