You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on adding searching for curator's comment to the free-text search we encountered multiple issues regarding free-text usability (link to discussion regarding those issues: link). This issue is meant to first make sure that we know how the search works and then adjust it to meet curators' expectations.
MongoDB offers full-text search for fields with indexes created for them. Currently we are able to search through:
"demographics.occupation"
"location.country"
"location.admin1"
"location.admin2"
"location.admin3"
"caseReference.sourceUrl"
"caseStatus"
"comment"
The exact rules for the searching are in the link above, here are some of the more important features:
By selecting language to english we are able to use features:
Stop-words - words without semantic meaning will be removed from search (full list of stop-words)
Stemming - terms are matched by their stemmed version (example: searching for dog will match dogs)
We can search for multiple terms at the same time, those terms will be treated with OR operator (example: searching for one two will match any case that contains one OR two)
Phrases - we can wrap terms in quotes, those terms will be treated as one uninterrupted term (example: searching for "one two" will match cases with one two and one two three but will not match one, two or one three two). Official documentation states that only one phrase per search is allowed, but we can search for multiple phrases, those will be treated with AND operator (example: searching for "one" and "two" will match one two, one two three and one three two, but will not match one or two)
What we are using the current search for (example: searching for country name)
The text was updated successfully, but these errors were encountered:
Background
While working on adding searching for curator's comment to the free-text search we encountered multiple issues regarding free-text usability (link to discussion regarding those issues: link). This issue is meant to first make sure that we know how the search works and then adjust it to meet curators' expectations.
Current state
Links:
MongoDB offers full-text search for fields with indexes created for them. Currently we are able to search through:
The exact rules for the searching are in the link above, here are some of the more important features:
dog
will matchdogs
)OR
operator (example: searching forone two
will match any case that containsone
ORtwo
)"one two"
will match cases withone two
andone two three
but will not matchone
,two
orone three two
). Official documentation states that only one phrase per search is allowed, but we can search for multiple phrases, those will be treated withAND
operator (example: searching for"one" and "two"
will matchone two
,one two three
andone three two
, but will not matchone
ortwo
)What we are using the current search for (example: searching for country name)
The text was updated successfully, but these errors were encountered: