Package org.springframework.data.mongodb.core

Examples of org.springframework.data.mongodb.core.IndexOperations.ensureIndex()


  public void setUp() {

    IndexOperations indexOps = template.indexOps(FullTextDoc.class);
    indexOps.dropAllIndexes();

    indexOps.ensureIndex(new IndexDefinition() {

      @Override
      public DBObject getIndexOptions() {
        DBObject options = new BasicDBObject();
        options.put("weights", weights());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.