@Test public void customAnalyzer() throws Exception{ NodeBuilder defnb = newLuceneIndexDefinition(builder.child(INDEX_DEFINITIONS_NAME), "lucene", of(TYPENAME_STRING)); defnb.setProperty(FulltextIndexConstants.MAX_FIELD_LENGTH, -1); defnb.child(ANALYZERS).child(ANL_DEFAULT) .child(LuceneIndexConstants.ANL_TOKENIZER) .setProperty(LuceneIndexConstants.ANL_NAME, "whitespace"); LuceneIndexDefinition defn = new LuceneIndexDefinition(root, defnb.getNodeState(), "/foo"); assertEquals(TokenizerChain.class.getName(), defn.getAnalyzer().getClass().getName()); }
public Analyzer getAnalyzer(){ return analyzer; }
LuceneIndexDefinition extends IndexDefinition { public Analyzer getAnalyzer(){ return analyzer; } }
LuceneIndexDefinition extends IndexDefinition { public Analyzer getAnalyzer(){ return analyzer; } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); }
LuceneIndexDefinition extends IndexDefinition { public Analyzer getAnalyzer(){ return analyzer; } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer(); }
LuceneIndexDefinition extends IndexDefinition { public Analyzer getAnalyzer(){ return analyzer; } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer();  }