Пример #1
0
 public static Srch_search_qry New__suggest_box(
     Xow_wiki wiki, Srch_search_cfg cfg, byte[] search_orig) {
   return new Srch_search_qry(
       Tid__suggest_box,
       cfg.Ns_mgr(),
       Srch_search_phrase.New(wiki.Case_mgr(), search_orig, Bool_.Y),
       0,
       cfg.Rslts_max());
 }
Пример #2
0
 public static Srch_search_qry New__search_page(
     Xow_domain_itm[] domains,
     Xow_wiki wiki,
     Srch_search_cfg cfg,
     boolean simple_search,
     byte[] search_orig,
     int slab_idx,
     int slab_len) {
   int slab_bgn = slab_idx * slab_len;
   int slab_end = slab_bgn + slab_len;
   boolean wildcard = simple_search;
   return new Srch_search_qry(
       Tid__search_page,
       cfg.Ns_mgr(),
       Srch_search_phrase.New(wiki.Case_mgr(), search_orig, wildcard),
       slab_bgn,
       slab_end);
 }