-
Notifications
You must be signed in to change notification settings - Fork 6
Exclude specified fields from Search #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
By adding “Suppress search = FIELD1, FIELD2”, the app creator can exclude FIELD1 and FIELD2 from Search results
|
This is especially useful if the Miga app is using fields with URLs (e.g. Video, Audio, Documents, URLs, etc.) because sometimes embedded strings within these URLs confuse non-technical users or are false positives. |
|
Would this be done only for URLs? If so, there are a few other options:
I guess a lot depends on whether the issue is more user confusion, or false positives. Do you have any thoughts on that? |
Missed check in previous commit
|
In our case, its both, but more of a user complaint. Right now, the search hit is shown in context, which is right and I would point the user to how Google does it. However, with URLs, the context display is long and shows url encoding characters, slashes, and directory structure which doesn't lend itself to word-wrapping in small displays, which also contributes to a less effective user interface. Also, the directory structure of the rich media fields (Video, URL, documents, etc.) are in a multi-level directory with very expressive names which generates a lot of false positives on the directory names. As for the options:
I think we should keep the default behavior of Miga on searching on everything, unless its curated by the app creator who may have some special requirements. Configuration by exception - keeping with the "Keep It Simple" Miga philosophy. |
|
Well, the real goal of Miga (or one of them) is to keep configuration stuff to a minimum, by making the code as "smart" as possible; which keeps things simple on the user's side, but not necessarily on the code side. The current solution isn't bad, but maybe there could be something a little smarter. The examples you give bring up an idea: what about only searching on the file name, i.e. ignoring everything before the last slash in the URL? That seems like it could be a reasonable compromise that keeps the search to only the relevant stuff. |
|
That works! And since filenames are normally short, show the filename in its entirety, and do only context highlighting in the filename. Nice! |
|
Right, only show the filename part as well. clap clap yay! |
By adding “Suppress search = FIELD1, FIELD2”, the app creator can
exclude FIELD1 and FIELD2 from Search results