add facet fields and supporting indexing; closes #1169