Site:Frontend:Faceted Search
MetrixAdmin (Talk | contribs) (Created page with "== Faceted Search ==") |
MetrixAdmin (Talk | contribs) (→Faceted Search) |
||
Line 1: | Line 1: | ||
== Faceted Search == | == Faceted Search == | ||
+ | |||
+ | Faceted search allows you to perform additional filtering on your objects by referencing a combination of custom fields that you created. This allows a simplier search interface without having to complicate the labeling system. You can do this by simply adding parameters to the URL. | ||
+ | |||
+ | === Accounts === | ||
+ | |||
+ | You can query custom attributes on accounts using the "account_" prefix. For example, if you created an custom field of "type" on your account objects with the possible values of "superuser" or "normal", then you could request the accounts that are superusers by adding "account_type=superuser" to your URL. | ||
+ | |||
+ | === Content === | ||
+ | |||
+ | You can query custom attributes on accounts using the "content_" prefix. For example, if you created an custom field of "flagged" on your content objects with the possible values of "yes" or "no", then you could request the content that is not flagged by adding "content_flagged=no" to your URL. | ||
+ | |||
+ | === Multi-level Search === | ||
+ | |||
+ | The faceted search allows you to perform deeper queries depending on your site page context. | ||
+ | |||
+ | ==== Accounts of Content ==== | ||
+ | |||
+ | If your page context is accounts, and you wanted to see account profiles that had flagged content, then you could do this by simply adding "content_flagged=yes" to your URL and internally the search mechanism would know to extend the search by referencing the content fields. | ||
+ | |||
+ | ==== Content of Accounts ==== | ||
+ | |||
+ | If your page context is content, and you wanted to see the content that belonged to all superuser accounts, then you could do this by simply adding "account_type=superuser" to your URL and internally the search mechanism would know to extend the search by referencing the account fields. |
Revision as of 18:36, 18 December 2010
Contents |
Faceted Search
Faceted search allows you to perform additional filtering on your objects by referencing a combination of custom fields that you created. This allows a simplier search interface without having to complicate the labeling system. You can do this by simply adding parameters to the URL.
Accounts
You can query custom attributes on accounts using the "account_" prefix. For example, if you created an custom field of "type" on your account objects with the possible values of "superuser" or "normal", then you could request the accounts that are superusers by adding "account_type=superuser" to your URL.
Content
You can query custom attributes on accounts using the "content_" prefix. For example, if you created an custom field of "flagged" on your content objects with the possible values of "yes" or "no", then you could request the content that is not flagged by adding "content_flagged=no" to your URL.
Multi-level Search
The faceted search allows you to perform deeper queries depending on your site page context.
Accounts of Content
If your page context is accounts, and you wanted to see account profiles that had flagged content, then you could do this by simply adding "content_flagged=yes" to your URL and internally the search mechanism would know to extend the search by referencing the content fields.
Content of Accounts
If your page context is content, and you wanted to see the content that belonged to all superuser accounts, then you could do this by simply adding "account_type=superuser" to your URL and internally the search mechanism would know to extend the search by referencing the account fields.