How to use PerFieldAnalyzerWrapper in luke tool?

114 Views Asked by At

How to use PerFieldAnalyzerWrapper in Luke tool ? For one field we have KeywordAnalyzer and other field StandardAnalyzer, So want to search using PerfieldAnalyzer in Luke tool, using Lucene 4.2.0. Is it possible?

1

There are 1 best solutions below

0
Mysterion On

Sadly, there is no way of using different analyzers for a field in Luke. I would recommend to write simple Java program, which will open existing index and then use PerFieldAnalyzerWrapper for search, so you could specify needed analyzers for desired fields.