Search in sources :

Example 1 with IAnalyzer

use of org.jboss.tools.hibernate.search.runtime.spi.IAnalyzer in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryImpl method createQueryParser.

@Override
public IQueryParser createQueryParser(String defaultField, IAnalyzer analyzer) {
    Analyzer luceneAnalyzer = (Analyzer) ((IFacade) analyzer).getTarget();
    QueryParser targetParser = new QueryParser(Version.LUCENE_34, defaultField, luceneAnalyzer);
    return new AbstractQueryParser(this, targetParser) {
    };
}
Also used : IQueryParser(org.jboss.tools.hibernate.search.runtime.spi.IQueryParser) QueryParser(org.apache.lucene.queryParser.QueryParser) AbstractQueryParser(org.jboss.tools.hibernate.search.runtime.common.AbstractQueryParser) AbstractQueryParser(org.jboss.tools.hibernate.search.runtime.common.AbstractQueryParser) Analyzer(org.apache.lucene.analysis.Analyzer) IAnalyzer(org.jboss.tools.hibernate.search.runtime.spi.IAnalyzer)

Aggregations

Analyzer (org.apache.lucene.analysis.Analyzer)1 QueryParser (org.apache.lucene.queryParser.QueryParser)1 AbstractQueryParser (org.jboss.tools.hibernate.search.runtime.common.AbstractQueryParser)1 IAnalyzer (org.jboss.tools.hibernate.search.runtime.spi.IAnalyzer)1 IQueryParser (org.jboss.tools.hibernate.search.runtime.spi.IQueryParser)1