Keyword Search
When conducting a search by keyword (a single word), the system will return results that either exactly match the specified word or are closely related (e.g., "SPM.5" might also return "SPM.4", and "test" might return "tests"). It is important to note that this functionality does not employ an n-gram search approach. By default, the search query is structured as follows:
Code Block |
---|
("%s")^2 OR summary.title:(%s)^1.2 OR summary.keywords:(%s)^1.2 OR (%s)^1 |
...
...
For those cases where only an exact match is desired, it is possible to enclose the search term in quotes. This action forces the system to return only documents where the exact phrase is found.
Info |
---|
It's worth noting that typically, enclosing a single word in quotes is unnecessary. However, due to the use of a standard analyzer, tokens such as "SPM.5" are split into separate words ("SPM" and "5"). Therefore, to ensure results only contain the exact match, enclosing the search term in quotes is recommended. |
...
Search by Phrase
When you initiate a search using a phrase (a group of words), the system is designed to return results that contain an exact match of the provided phrase. This means that every word in your search phrase will be considered in the sequence you've provided, ensuring the results are as relevant as possible to your query. For instance, screenshots included in the documentation illustrate how the first result displays an exact match of the search phrase, while subsequent results may only contain parts of the search phrase or the terms in a different order.
https://www.loom.com/share/8d117be741944f13a4bbb2f4def85163?sid=4343562a-6434-4a6c-b408-d8b32759b007
...
To refine your search to return only exact matches, it is recommended to enclose your search phrase in quotes. This approach directs the search engine to look for documents where the phrase appears exactly as entered.
https://www.loom.com/share/4a138171b40d4bc18a2f825fbaf27aea?sid=a9dcaeb5-f1e1-4c24-8212-831606662513
...
Synonym Search
The synonym search functionality is configured within the application.yml
file, which defines groups of synonymous terms to enhance search flexibility and accuracy. Presently, there is one group of synonyms established, comprising two terms: "MDW" and "MetadataWorks." This configuration ensures that a search for "MDW" will yield results containing both "MDW" and "MetadataWorks," treating them as equivalent terms in the context of the search.
https://www.loom.com/share/176d1a1163a543d2a95075fba20cbbfd?sid=e825b9d0-55c6-4093-9583-10099497dde9
...
Searching Structural Metadata: Has/Has Not
When conducting a search that involves structural metadata (either specifying the presence or absence of certain data), it is crucial to use the correct syntax to ensure the desired results are obtained. To indicate that your query utilizes the search syntax, precede it with the rs:
prefix
https://www.loom.com/share/5b5d27fe741e46dd81a3a56d5c8acdab?sid=a0be4175-9072-4b16-a6fe-10caf946d7e4
...
Datasets Without Structural Metadata: There are a total of 2,673 datasets identified on the staging site that lack structural metadata.
Datasets With Structural Metadata: In contrast, 49 datasets have been enriched with structural metadata.
Total Datasets Overview: Cumulatively, the staging site hosts 2,722 datasets, encompassing both those with and without structural metadata.
Searching Within a Data Element or Data Class
Search specifically within a data element or data class by using the advanced search equivalent.
Key Usage Notes:
Equivalence: This method matches selecting a data element or class in the advanced search.
Syntax: Start your search with "rs:" to ensure it's conducted within your chosen category.
https://www.loom.com/share/ac339d9db2614cf6843b286e775bcf4d?sid=fce01da4-1fc2-4b7a-ae50-425df9e9e843
...
Searching with Multiple-Word Terms
Search for multiple words, and the engine will show results matching any of those words.
Result Ranking: Results are ranked by relevance. Those with more matches to your terms appear first.
https://www.loom.com/share/3759ae912b31417a8a12ca876c9d4075?sid=06ffc67c-1e4b-4805-bcba-4d9d3592e291
...
Using Wildcard in Searches
To search for multiple similar keywords, like "CPM1," "CPM2," and "CPM10," use a wildcard character. For example, searching for "CPM?" will return all items that match this pattern, capturing variants like CPM1, CPM2, etc., in one query.
https://www.loom.com/share/5e46fabbaddc449c9cc97bfe414f135e?sid=94d9d63d-e1a8-471f-91e3-792c7994fc1e
...
Using Boolean Operators
Enhance your searches with Boolean operators: AND, OR, NOT. Remember, searches are case-sensitive and require the "rs:" prefix for these operations.
Key Points:
Use "AND" to find items containing all specified terms.
Use "OR" to find items containing any of the specified terms.
Use "NOT" to exclude items containing the specified term.
...
Include Page | ||||
---|---|---|---|---|
|