basic facets support for whoosh
improved facets support for whoosh
fixed errors kindly spotted and resolved by johnsensible