Few logic improvement. The search method stores XML. Preparation before
adding document and facet getter(s)