コード例 #1
0
 /**
  * read in a single Index
  *
  * @param sc
  * @param el
  * @throws SearchException
  * @throws PageException
  */
 protected void readIndex(SearchCollection sc, Element el) throws SearchException {
   // Index
   SearchIndex si =
       new SearchIndexImpl(
           _attr(el, "id"),
           _attr(el, "title"),
           _attr(el, "key"),
           SearchIndexImpl.toType(_attr(el, "type")),
           _attr(el, "query"),
           engine.getListUtil().toStringArray(_attr(el, "extensions"), ","),
           _attr(el, "language"),
           _attr(el, "urlpath"),
           _attr(el, "categoryTree"),
           engine.getListUtil().toStringArray(_attr(el, "category"), ","),
           _attr(el, "custom1"),
           _attr(el, "custom2"),
           _attr(el, "custom3"),
           _attr(el, "custom4"));
   sc.addIndex(si);
 }