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

org.vertexium.elasticsearch5.plugin.VertexiumElasticsearchPlugin Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.elasticsearch5.plugin;

import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.plugins.SearchPlugin;

import java.util.List;
import java.util.Optional;

import static java.util.Collections.singletonList;

public class VertexiumElasticsearchPlugin extends Plugin implements SearchPlugin {
    @Override
    public List> getQueries() {
        return singletonList(new QuerySpec<>(
                VertexiumQueryStringQueryBuilder.NAME,
                VertexiumQueryStringQueryBuilder::new,
                parseContext -> (Optional) (Optional) VertexiumQueryStringQueryBuilder.fromXContent(parseContext)
        ));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy