Package net.sf.clairv.index.document

Examples of net.sf.clairv.index.document.StoreOption


      throw new IllegalStateException("queryString cannot be null");
    }
  }

  private Pair getFieldType(String config) {
    StoreOption s = null;
    IndexOption i = null;
    StringTokenizer st = new StringTokenizer(config, ", \t");
    try {
      String temp = st.nextToken();
      if ("NO".equalsIgnoreCase(temp)) {
View Full Code Here


    } else {
      log.info("Searchable fields not configured; trying to guess...");
      Collection fields = doc.getFields();
      for (Iterator itr = fields.iterator(); itr.hasNext(); ) {
        Field field = (Field)itr.next();
        StoreOption store = field.getStoreOption();
        IndexOption index = field.getIndexOption();
        if ((store == StoreOption.YES || store == StoreOption.COMPRESS)
            && (index == IndexOption.TOKENIZED || index == IndexOption.UN_TOKENIZED)) {
          log.info("Field " + field.getName()
              + " is added to the synthetic field");
View Full Code Here

      // No need for conversion
      return ((LuceneField) field).getField();
    }
    org.apache.lucene.document.Field.Store store = org.apache.lucene.document.Field.Store.YES;
    org.apache.lucene.document.Field.Index index = org.apache.lucene.document.Field.Index.UN_TOKENIZED;
    StoreOption storeOption = field.getStoreOption();
    IndexOption indexOption = field.getIndexOption();
    if (storeOption == StoreOption.YES) {
      store = org.apache.lucene.document.Field.Store.YES;
    } else if (storeOption == StoreOption.NO) {
      store = org.apache.lucene.document.Field.Store.NO;
View Full Code Here

TOP

Related Classes of net.sf.clairv.index.document.StoreOption

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.