All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mysema.query.lucene.LuceneQuery Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 *
 */
package com.mysema.query.lucene;

import org.apache.commons.collections15.Transformer;
import org.apache.lucene.document.Document;
import org.apache.lucene.search.Searcher;

/**
 * LuceneQuery is a Querydsl query implementation for Lucene queries.
 *
 * @author vema
 */
public class LuceneQuery extends AbstractLuceneQuery{
    
    private static final Transformer TRANSFORMER = new Transformer() {

        @Override
        public Document transform(Document input) {
            return input;
        }
        
    };
  
    public LuceneQuery(Searcher searcher) {
        super(searcher, TRANSFORMER);
    }

    public LuceneQuery(LuceneSerializer luceneSerializer, Searcher searcher) {
        super(luceneSerializer, searcher, TRANSFORMER);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy