Home
TeamSite
Dumb question Facet?
System
What does facet mean? There are a bunch of references to it in the LSCS Tech Ref guide. Even a LscsFaceQuery class that extends the LscsQuery. I cant find anything that explains what a facet is. Seems like I should know.
Find more posts tagged with
Comments
Rick Poulin
I *believe* that a facet gets treated as "meaningful" piece of content, and is therefore indexed the same way as the body of your content. In this case, stop words are removed from the tag before it goes into the index, so it's for cases where you'd be searching that value based on meaning rather than based on exact value.
Migrateduser
A facet is a special type of attribute.
If you want to get a count of all the assets that have a certain value of an attribute then you would declare that attribute as a facet (or to be more specific, a faceted attribute).
An example would be
If there is a attribute that is called "electronic item type" and this can take values like "tv", "dvd", "media player" etc. and if this is defined as a faceted attribute, then one could issue a query to retrieve the number of items which have "electronic item type" = "tv" and "electronic item type" = "dvd" etc.
The output of the query would be something like
facet name='electronic item type'
value name='tv' count='10'
value name='dvd' count='20'
.....
...
facet
Migrateduser
Does this have similar uses as an index in a relational database. By that I mean searching on a faceted value would be faster then searching on an extended attribute? And does rpoulin's comment "searching that value based on meaning rather than based on exact value" ring true? If so I dont understand what he means.