Package com.cloudant.index

Examples of com.cloudant.index.IndexType


          List<Object> l = mapped.get(field);
          Iterator<Object> iter = l.iterator();
          while (iter.hasNext()) {
            Object o = iter.next();
            if (o == null) continue;
            final IndexType type = fo.getType();
            final float boost = (float)fo.getBoost();
            String luceneName = fo.getFieldName();
            if (luceneName == null) luceneName = field;
            switch (type) {
            case STRING: index.addField(luceneName, IndexUtilities.ObjectToString(o), analyzer, boost);break;
View Full Code Here


          String luceneName = thisField.optString("lucenename",name);
          if (luceneName == null) name = null;
          double boost = thisField.optDouble("boost", 1.0);
          boolean regexp = thisField.optBoolean("regexp", false);
          String type = thisField.optString("type","string");
          IndexType t = IndexType.getIndexTypeFromString(type);
          if (t == IndexType.DATE) {
            try {
              String f = thisField.getString("dateformat");
              if (f != null) {
                SimpleDateFormat d = new SimpleDateFormat(f);
View Full Code Here

TOP

Related Classes of com.cloudant.index.IndexType

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.