CDCM supports full-text search beginning from version 1 if running on Atlas (https://www.mongodb.com/products/platform/atlas-database ).
Partial Matching
It is possible to search search for partial matches in the data. There is no difference between “wash” and “wash*”.
Negation Queries
It is possible to exclude certain terms from the seach. In the case above the term “machine” is excluded by the preceding “-” sign. It is also possible to exclude multiple terms (e.g. “wash -machine -friction”).
Exact Matches
Also you can search for exact matches if you include them in quotes.
Sorting & Scope
Sorting of Results
The search hits are sorted by a search score similar to the one that big search engines like Google are using, so based on relevance. If the search term is found in the title or description it is ranked higher than in any of the other properties and thus appears more to the top. This behaviour ensures the most relevant results appear first.
Scope of the search
The search is looking for the search term in all fields, including the dynamic properties.
Filtering of the results
It is also possible to add search filters to the query which have the effect of filtering the possible search results down to all matching the given filter.
In this example you can search for “steer” and filter by all having the ID of “7838974799” which in this case is as intended only one.
Add Comment