Package jfix.search

Examples of jfix.search.FullTextIndex


  public String getSearch() {
    return search;
  }

  private void buildFullTextIndex(List<E> elements) {
    fullTextIndex = new FullTextIndex();
    int columnCount = getColumns().length;
    for (E entity : elements) {
      StringBuilder fulltext = new StringBuilder(256);
      Object[] searchValues = getSearchValues(entity);
      if (searchValues != null) {
View Full Code Here


        if (selectionModel.indexOf(entity) == -1) {
          choiceModel.add(entity);
        }
      }
    } else {
      FullTextIndex index = new FullTextIndex();
      for (int i = 0; i < backupModel.size(); i++) {
        Object entity = backupModel.get(i);
        if ((choiceListbox.getItemRenderer()) instanceof ItemRenderer) {
          index.add(entity, ((ItemRenderer) choiceListbox
              .getItemRenderer()).render(entity));
        } else {
          index.add(entity, String.valueOf(entity));
        }
      }
      index.commit();
      for (Object obj : index.search(searchTerm)) {
        if (selectionModel.indexOf(obj) == -1) {
          choiceModel.add(obj);
        }
      }
      choiceListbox.selectAll();
View Full Code Here

TOP

Related Classes of jfix.search.FullTextIndex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.