当前位置: 首页>>代码示例>>Java>>正文


Java DoubleField.TYPE_NOT_STORED属性代码示例

本文整理汇总了Java中org.apache.lucene.document.DoubleField.TYPE_NOT_STORED属性的典型用法代码示例。如果您正苦于以下问题:Java DoubleField.TYPE_NOT_STORED属性的具体用法?Java DoubleField.TYPE_NOT_STORED怎么用?Java DoubleField.TYPE_NOT_STORED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.lucene.document.DoubleField的用法示例。


在下文中一共展示了DoubleField.TYPE_NOT_STORED属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

@Override
public void configure(String fieldNameForThisInstance, Map<String, String> properties, Configuration configuration) {
  String precisionStepStr = properties.get(NUMERIC_PRECISION_STEP);
  if (precisionStepStr != null) {
    _precisionStep = Integer.parseInt(precisionStepStr);
    _typeStored = new FieldType(DoubleField.TYPE_STORED);
    _typeStored.setNumericPrecisionStep(_precisionStep);
    _typeStored.freeze();
    _typeNotStored = new FieldType(DoubleField.TYPE_NOT_STORED);
    _typeNotStored.setNumericPrecisionStep(_precisionStep);
    _typeNotStored.freeze();
  } else {
    _typeStored = DoubleField.TYPE_STORED;
    _typeNotStored = DoubleField.TYPE_NOT_STORED;
  }
}
 
开发者ID:apache,项目名称:incubator-blur,代码行数:16,代码来源:DoubleFieldTypeDefinition.java

示例2: BBoxStrategy

public BBoxStrategy(SpatialContext ctx, String fieldNamePrefix) {
  super(ctx, fieldNamePrefix);
  field_bbox = fieldNamePrefix;
  field_minX = fieldNamePrefix + SUFFIX_MINX;
  field_maxX = fieldNamePrefix + SUFFIX_MAXX;
  field_minY = fieldNamePrefix + SUFFIX_MINY;
  field_maxY = fieldNamePrefix + SUFFIX_MAXY;
  field_xdl = fieldNamePrefix + SUFFIX_XDL;

  FieldType fieldType = new FieldType(DoubleField.TYPE_NOT_STORED);
  fieldType.setNumericPrecisionStep(8);//Solr's default
  fieldType.setDocValueType(FieldInfo.DocValuesType.NUMERIC);
  setFieldType(fieldType);
}
 
开发者ID:europeana,项目名称:search,代码行数:14,代码来源:BBoxStrategy.java

示例3: createIndexableFields

/** @see #createIndexableFields(com.spatial4j.core.shape.Shape) */
public Field[] createIndexableFields(Point point) {
  FieldType doubleFieldType = new FieldType(DoubleField.TYPE_NOT_STORED);
  doubleFieldType.setNumericPrecisionStep(precisionStep);
  Field[] f = new Field[2];
  f[0] = new DoubleField(fieldNameX, point.getX(), doubleFieldType);
  f[1] = new DoubleField(fieldNameY, point.getY(), doubleFieldType);
  return f;
}
 
开发者ID:europeana,项目名称:search,代码行数:9,代码来源:PointVectorStrategy.java

示例4: doubleField

@Override
public void doubleField(FieldInfo fieldInfo, double value) {
  FieldType ft = new FieldType(DoubleField.TYPE_NOT_STORED);
  ft.setStored(true);
  ft.setIndexed(fieldInfo.isIndexed());
  doc.add(new DoubleField(fieldInfo.name, value, ft));
}
 
开发者ID:europeana,项目名称:search,代码行数:7,代码来源:SolrIndexSearcher.java

示例5: doubleField

@Override
public void doubleField(FieldInfo fieldInfo, double value) {
	FieldType ft = new FieldType(DoubleField.TYPE_NOT_STORED);
	ft.setStored(true);
	ft.setIndexed(fieldInfo.isIndexed());
	doc.add(new DoubleField(fieldInfo.name, value, ft));
}
 
开发者ID:netboynb,项目名称:search-core,代码行数:7,代码来源:SolrIndexSearcher.java


注:本文中的org.apache.lucene.document.DoubleField.TYPE_NOT_STORED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。