Package org.springframework.data.mongodb.core.index

Examples of org.springframework.data.mongodb.core.index.IndexDefinition


  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

Related Classes of org.springframework.data.mongodb.core.index.IndexDefinition

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.