Package com.github.jmkgreen.morphia.indexing

Examples of com.github.jmkgreen.morphia.indexing.TextIndexCommand


        }
    }

    private void createTextIndex(MappedField mf, Class<?> indexedClass, String field) {
        SimpleTextIndex txtIndex = mf.getAnnotation(SimpleTextIndex.class);
        TextIndexCommand cmd = new TextIndexCommand();
        cmd.setName(field);
        if (!txtIndex.name().isEmpty()) {
            cmd.setName(txtIndex.name());
        }
        cmd.setDefaultLanguage(txtIndex.defaultLanguage());
        List<String> fields = new ArrayList();
        fields.add(field);
        cmd.setFields(fields);
        createTextIndex(indexedClass, cmd);
    }
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.indexing.TextIndexCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.