Java Code Examples for org.apache.lucene.util.Version#LUCENE_8_3_0

The following examples show how to use org.apache.lucene.util.Version#LUCENE_8_3_0 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PackedQuadPrefixTree.java    From lucene-solr with Apache License 2.0 5 votes vote down vote up
@Override
protected SpatialPrefixTree newSPT() {
  PackedQuadPrefixTree tree = new PackedQuadPrefixTree(ctx, maxLevels != null ? maxLevels : MAX_LEVELS_POSSIBLE);
  @SuppressWarnings("deprecation")
  Version lucene830 = Version.LUCENE_8_3_0;
  tree.robust = getVersion().onOrAfter(lucene830);
  return tree;
}
 
Example 2
Source File: QuadPrefixTree.java    From lucene-solr with Apache License 2.0 5 votes vote down vote up
@Override
protected SpatialPrefixTree newSPT() {
  QuadPrefixTree tree = new QuadPrefixTree(ctx,
      maxLevels != null ? maxLevels : MAX_LEVELS_POSSIBLE);
  @SuppressWarnings("deprecation")
  Version LUCENE_8_3_0 = Version.LUCENE_8_3_0;
  tree.robust = getVersion().onOrAfter(LUCENE_8_3_0);
  return tree;
}